55 "execution_count" : 1 ,
66 "metadata" : {
77 "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 "
1212 },
1313 "pycharm" : {
1414 "name" : " #%%\n "
1717 "outputs" : [],
1818 "source" : [
1919 " import numpy as np\n " ,
20- " import regex\n " ,
2120 " \n " ,
22- " def use_modules():\n " ,
23- " regex.split(' ', 'brown fox')\n " ,
21+ " def func(data):\n " ,
2422 " return bool(np.all([True]))\n "
2523 ]
2624 },
2927 "execution_count" : 2 ,
3028 "metadata" : {
3129 "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 "
3634 },
3735 "pycharm" : {
36+ "is_executing" : true ,
3837 "name" : " #%%\n "
3938 }
4039 },
4342 "name" : " stdout" ,
4443 "output_type" : " stream" ,
4544 "text" : [
46- " regex==2023.6.3\n " ,
47- " numpy==1.25.1\n "
45+ " numpy==1.22.4\n "
4846 ]
4947 }
5048 ],
5149 "source" : [
5250 " from mlem.utils.module import get_object_requirements\n " ,
5351 " \n " ,
54- " res = get_object_requirements(use_modules )\n " ,
52+ " res = get_object_requirements(func )\n " ,
5553 " \n " ,
56- " print(\"\\ n \" .join(res.to_pip()))"
54+ " print(\" \" .join(res.to_pip()))"
5755 ]
5856 }
5957 ],
7371 "name" : " python" ,
7472 "nbconvert_exporter" : " python" ,
7573 "pygments_lexer" : " ipython3" ,
76- "version" : " 3.10.9 "
74+ "version" : " 3.9.13 "
7775 }
7876 },
7977 "nbformat" : 4 ,
8078 "nbformat_minor" : 0
81- }
79+ }
0 commit comments