Skip to content

Commit

Permalink
capture
Browse files Browse the repository at this point in the history
  • Loading branch information
kolibril13 committed Oct 27, 2022
1 parent 64a07b7 commit d12349b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyterlite_capture_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"outputs": [],
"source": [
"%pip install jupyter-capture-output==0.0.6 \n",
"%pip install jupyter-capture-output\n",
"# this only works since Jupyterlite jupyterlite==0.1.0b14"
]
},
Expand Down Expand Up @@ -73,8 +73,8 @@
"metadata": {},
"outputs": [],
"source": [
"# %%capture_code --path \"cell_content.py\" ## only in version 0.0.8\n",
"# print(\"Hello World\")"
"%%capture_code --path \"cell_content.py\"\n",
"print(\"Hello World\")"
]
},
{
Expand All @@ -86,7 +86,7 @@
"source": [
"from pathlib import Path\n",
"Path(\"greeting.txt\").unlink() # for deleting\n",
"# Path(\"cell_content.py\").unlink()\n",
"Path(\"cell_content.py\").unlink()\n",
"Path(\"dog.png\").unlink() "
]
}
Expand Down

0 comments on commit d12349b

Please sign in to comment.