Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Fixing ipynb lint again. shakes-fist-at-pycharm
Browse files Browse the repository at this point in the history
  • Loading branch information
omesser committed Jul 13, 2023
1 parent 0727838 commit b33f112
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions tests/utils/test_save.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-07-13T20:04:23.425791Z",
"iopub.status.busy": "2023-07-13T20:04:23.425682Z",
"iopub.status.idle": "2023-07-13T20:04:23.436620Z",
"shell.execute_reply": "2023-07-13T20:04:23.436325Z"
"iopub.execute_input": "2023-02-13T14:11:29.261665Z",
"iopub.status.busy": "2023-02-13T14:11:29.261394Z",
"iopub.status.idle": "2023-02-13T14:11:29.267566Z",
"shell.execute_reply": "2023-02-13T14:11:29.266734Z"
},
"pycharm": {
"name": "#%%\n"
Expand All @@ -17,10 +17,8 @@
"outputs": [],
"source": [
"import numpy as np\n",
"import regex\n",
"\n",
"def use_modules():\n",
" regex.split(' ', 'brown fox')\n",
"def func(data):\n",
" return bool(np.all([True]))\n"
]
},
Expand All @@ -29,12 +27,13 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2023-07-13T20:04:23.438339Z",
"iopub.status.busy": "2023-07-13T20:04:23.438249Z",
"iopub.status.idle": "2023-07-13T20:04:24.532574Z",
"shell.execute_reply": "2023-07-13T20:04:24.532277Z"
"iopub.execute_input": "2023-02-13T14:11:29.270506Z",
"iopub.status.busy": "2023-02-13T14:11:29.270233Z",
"iopub.status.idle": "2023-02-13T14:11:29.969468Z",
"shell.execute_reply": "2023-02-13T14:11:29.968705Z"
},
"pycharm": {
"is_executing": true,
"name": "#%%\n"
}
},
Expand All @@ -43,17 +42,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"regex==2023.6.3\n",
"numpy==1.25.1\n"
"numpy==1.22.4\n"
]
}
],
"source": [
"from mlem.utils.module import get_object_requirements\n",
"\n",
"res = get_object_requirements(use_modules)\n",
"res = get_object_requirements(func)\n",
"\n",
"print(\"\\n\".join(res.to_pip()))"
"print(\" \".join(res.to_pip()))"
]
}
],
Expand All @@ -73,9 +71,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit b33f112

Please sign in to comment.