Tutorial for pyHiM notebook#

A jupyter notebook is an interactive file where you can find both markdown text and executable code with its outputs displayed.

The main pyHiM tutorial is in this format.

Install and configure JupyterLab#

  1. Activate your conda environment for pyHiM:

conda activate pyHiM

Note

Replace pyHiM by your environment name if you called it something else.

  1. Install a tool to manage jupyter notebook like JupyterLab:

conda install jupyterlab
  1. We recommend to create a specific kernel to run pyHiM on JupyterLab with the good environment:

conda install ipykernel
ipython kernel install --user --name=pyHiM-kernel

Open tutorial with JupyterLab#

  1. To download and unzip the pyHiM notebook with its python file, click here:

  2. Open a terminal inside your downloaded folder and activate your conda environment for pyHiM

conda activate pyHiM
  1. Open pyHiM tutorial with JupiterLab (or jupyter notebook):

jupyter-lab full_pyHiM_run.ipynb
  1. Once you spin up a jupyter lab from the pyHiM environment, select the pyHiM-kernel (click on panel Kernel > Change Kernel…) to be able to run pyHiM functions.

select_kernel_screenshot

  1. Now you can follow the tutorial by running each cell with the run icon (or Shift+Enter on keyboard):

run_notebook_screenshot