User Tools

Site Tools


it:jupyter_notebook

Jupyter Notebook

Using Jupyter with Conda

When using Jupyter Notebook with Conda there might be problems. Jupiter might not find python packages you installed to the environment you use. To solve this use the nb_conda_kernels PIP package.

Executing Jupyter Notebook from command line

jupyter nbconvert --ExecutePreprocessor.timeout=None --to notebook --execute <noteboo_name>.ipynb

The –ExecutePreprocessor.timeout=None is important to turn off the timeout for the maximum time (in seconds) each notebook cell is allowed to run.

also see: https://nbconvert.readthedocs.io/en/latest/execute_api.html#executing-notebooks-from-the-command-line

Installation

This package is designed to be managed solely using conda. It should be installed in then environment from which you run Jupyter Notebook or JupyterLab. If you want to use my_conda_env as the conda environment you want to use. Just install nb_conda_kernels this way:

conda install -n my_conda_env nb_conda_kernels

Discussion

Enter your comment. Wiki syntax is allowed:
H Y X M H
 
it/jupyter_notebook.txt · Last modified: 2019/01/19 22:55 by pmay