thescripterr commited on
Commit
071942b
·
1 Parent(s): 5d85dbc

Added export from ipynb to py

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.ipynb +11 -11
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.ipynb CHANGED
@@ -868,25 +868,25 @@
868
  },
869
  {
870
  "cell_type": "code",
871
- "execution_count": 19,
872
  "id": "6408f105-dba8-4250-a92f-bcba29792d08",
873
  "metadata": {},
874
  "outputs": [
875
  {
876
- "ename": "ImportError",
877
- "evalue": "cannot import name 'notebook2script' from 'nbdev.export' (/Users/abrahampelema/anaconda3/lib/python3.10/site-packages/nbdev/export.py)",
878
- "output_type": "error",
879
- "traceback": [
880
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
881
- "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)",
882
- "Cell \u001b[0;32mIn[19], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mnbdev\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mexport\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m notebook2script\n\u001b[1;32m 2\u001b[0m notebook2script(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mapp.ipynb\u001b[39m\u001b[38;5;124m'\u001b[39m)\n",
883
- "\u001b[0;31mImportError\u001b[0m: cannot import name 'notebook2script' from 'nbdev.export' (/Users/abrahampelema/anaconda3/lib/python3.10/site-packages/nbdev/export.py)"
884
  ]
885
  }
886
  ],
887
  "source": [
888
- "from nbdev.export import notebook2script\n",
889
- "notebook2script('app.ipynb')"
 
 
 
 
890
  ]
891
  },
892
  {
 
868
  },
869
  {
870
  "cell_type": "code",
871
+ "execution_count": 21,
872
  "id": "6408f105-dba8-4250-a92f-bcba29792d08",
873
  "metadata": {},
874
  "outputs": [
875
  {
876
+ "name": "stdout",
877
+ "output_type": "stream",
878
+ "text": [
879
+ "Export successful\n"
 
 
 
 
880
  ]
881
  }
882
  ],
883
  "source": [
884
+ "# from nbdev.export import notebook2script\n",
885
+ "# notebook2script('app.ipynb')\n",
886
+ "\n",
887
+ "import nbdev\n",
888
+ "nbdev.export.nb_export('app.ipynb', './')\n",
889
+ "print('Export successful')"
890
  ]
891
  },
892
  {