This is now built into nbconvert (as of 5.3.0) using tags. Here’s an example removing a specific cell from the output. Using this notebook. The example has three cells: a markdown cell, a code cell that will be hidden, and a code cell that will not be hidden. Add the remove_cell tag to any cells … Read more
If you don’t want to output a Python script every time you save, or you don’t want to restart the IPython kernel: On the command line, you can use nbconvert: $ jupyter nbconvert –to script [YOUR_NOTEBOOK].ipynb As a bit of a hack, you can even call the above command in an IPython notebook by pre-pending … Read more
To add custom CSS to a particular notebook you can use HTML. Add and execute a regular Python code cell with the following content: from IPython.core.display import HTML HTML(“”” <style> // add your CSS styling here </style> “””) Alternatively (thanks @abalter) use the %%html cell magic: %%html <style> // add your CSS styling here </style>
jupyter notebook –help-all could be of help: –notebook-dir=<Unicode> (NotebookManager.notebook_dir) Default: u’/Users/me/ipynbs’ The directory to use for notebooks. For example: jupyter notebook –notebook-dir=/Users/yourname/folder1/folder2/ You can of course set it in your profiles if needed, you might need to escape backslash in Windows. Note that this will override whatever path you might have set in a jupyter_notebook_config.py … Read more
As mentioned in the comments, conda support for jupyter notebooks is needed to switch kernels. Seems like this support is now available through conda itself (rather than relying on pip). http://docs.continuum.io/anaconda/user-guide/tasks/use-jupyter-notebook-extensions/ conda install nb_conda which brings three other handy extensions in addition to Notebook Conda Kernels.
This worked for me on Ubuntu 16.04: python2 -m pip install ipykernel python2 -m ipykernel install –user python3 -m pip install ipykernel python3 -m ipykernel install –user Reference to the documentation: Kernels for Python 2 and 3. Installing the IPython kernel – IPython Docs.