Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 2.08 KB

README.md

File metadata and controls

58 lines (46 loc) · 2.08 KB

Jupyter Notebooks

This directory contains Jupyter Notebooks used to compute and visualize data generated with the help of this package.

This directory includes the following notebooks:

Running notebooks

If needed, install required packages with

python -m pip install --upgrade -r notebooks/requirements.txt

when in the top directory of the project (or use simply requirements.txt when in notebooks/ directory, that is in this directory).

It is recommended to use virtual environment, see the information in the main README.md file: Virtual environment.

Once installed, launch JupyterLab with:

jupyter lab

Development

You can install recommended packages with

python -m pip install --upgrade -r notebooks/requirements-dev.txt

when in the top directory of the project (or use simply requirements-dev.txt when in notebooks/ directory, that is in this directory).

The .gitignore file, .gitattributes file, and requirements.txt and requirements-dev.txt files are local to this directory, and are about Jupyter Notebooks that are here.

You can use nbdime for diffing and merging of Jupyter notebooks. The .gitattribute file is committed to the repository, but it needs Git config to work. You can add it with the following command (after installing nbdime):

nbdime config-git --enable

See Git integration section in the nbdime documentation.

Try to commit notebooks in a well-defined and consistent state, for example by restarting the kernel and re-running all cells before committing.