Skip to content

scikit-hep/scikit-hep-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scikit-HEP ecosystem tutorials

Repository collecting tutorials, demos and examples on how to exploit the Scikit-HEP ecosystem packages.

Local notebook testing and build

To install locally, make sure miniconda is installed then run from this directory:

conda env create
conda activate scikit-hep-tutorials
python -m ipykernel install --user --name scikit-hep-tutorials
jupyter lab

Only the activate and lab lines need to be run once this is installed. Use conda env update to bring the environment back up to date.

To build the notebooks:

jupyter book build .

If you want to enable the code formatter button to put things into Black format, run the following in the environment:

conda install -c conda-forge jupyterlab_code_formatter black isort nodejs
jupyter labextension install @ryantam626/jupyterlab_code_formatter
jupyter serverextension enable --py jupyterlab_code_formatter

You will now have a new button and a new command in the command pallete.

And the spell checker (can be found in the Lab UI as well, under extensions):

jupyter labextension install @ijmbarr/jupyterlab_spellchecker

You may be asked to rebuild.