Jupyter Notebooks
Adding kernel for Hydrogen in Atom
Install the ipykernel in your virtual environment:
pipenv install ipykernel
Start shell with:
pipenv shell
Set name so Atom Hydrogen can recognize:
pipenv run python -m ipykernel install --user --name=name-of-kernel
Start Atom (from within pipenv shell) and when you run code (control-enter), Atom should list python kernels to use (including
name-of-kernel
)
Installing Modules
the last word is the name of the module to install
Capturing Output to File
You can use %%capture
Jupyter notebook's magic command to catch output of cell and then paste it to your text file with
if you want to cell code to specific file for example.txt you can use magic function %%writefile
Also if you want to append to file you must use -a
parameter
Last updated
Was this helpful?