5
5
"execution_count" : 1 ,
6
6
"metadata" : {
7
7
"execution" : {
8
- "iopub.execute_input" : " 2023-07-13T20:04:23.425791Z " ,
9
- "iopub.status.busy" : " 2023-07-13T20:04:23.425682Z " ,
10
- "iopub.status.idle" : " 2023-07-13T20:04:23.436620Z " ,
11
- "shell.execute_reply" : " 2023-07-13T20:04:23.436325Z "
8
+ "iopub.execute_input" : " 2023-02-13T14:11:29.261665Z " ,
9
+ "iopub.status.busy" : " 2023-02-13T14:11:29.261394Z " ,
10
+ "iopub.status.idle" : " 2023-02-13T14:11:29.267566Z " ,
11
+ "shell.execute_reply" : " 2023-02-13T14:11:29.266734Z "
12
12
},
13
13
"pycharm" : {
14
14
"name" : " #%%\n "
17
17
"outputs" : [],
18
18
"source" : [
19
19
" import numpy as np\n " ,
20
- " import regex\n " ,
21
20
" \n " ,
22
- " def use_modules():\n " ,
23
- " regex.split(' ', 'brown fox')\n " ,
21
+ " def func(data):\n " ,
24
22
" return bool(np.all([True]))\n "
25
23
]
26
24
},
29
27
"execution_count" : 2 ,
30
28
"metadata" : {
31
29
"execution" : {
32
- "iopub.execute_input" : " 2023-07-13T20:04:23.438339Z " ,
33
- "iopub.status.busy" : " 2023-07-13T20:04:23.438249Z " ,
34
- "iopub.status.idle" : " 2023-07-13T20:04:24.532574Z " ,
35
- "shell.execute_reply" : " 2023-07-13T20:04:24.532277Z "
30
+ "iopub.execute_input" : " 2023-02-13T14:11:29.270506Z " ,
31
+ "iopub.status.busy" : " 2023-02-13T14:11:29.270233Z " ,
32
+ "iopub.status.idle" : " 2023-02-13T14:11:29.969468Z " ,
33
+ "shell.execute_reply" : " 2023-02-13T14:11:29.968705Z "
36
34
},
37
35
"pycharm" : {
36
+ "is_executing" : true ,
38
37
"name" : " #%%\n "
39
38
}
40
39
},
43
42
"name" : " stdout" ,
44
43
"output_type" : " stream" ,
45
44
"text" : [
46
- " regex==2023.6.3\n " ,
47
- " numpy==1.25.1\n "
45
+ " numpy==1.22.4\n "
48
46
]
49
47
}
50
48
],
51
49
"source" : [
52
50
" from mlem.utils.module import get_object_requirements\n " ,
53
51
" \n " ,
54
- " res = get_object_requirements(use_modules )\n " ,
52
+ " res = get_object_requirements(func )\n " ,
55
53
" \n " ,
56
- " print(\"\\ n \" .join(res.to_pip()))"
54
+ " print(\" \" .join(res.to_pip()))"
57
55
]
58
56
}
59
57
],
73
71
"name" : " python" ,
74
72
"nbconvert_exporter" : " python" ,
75
73
"pygments_lexer" : " ipython3" ,
76
- "version" : " 3.10.9 "
74
+ "version" : " 3.9.13 "
77
75
}
78
76
},
79
77
"nbformat" : 4 ,
80
78
"nbformat_minor" : 0
81
- }
79
+ }
0 commit comments