Installation¶
To get started with ipycytoscape, install with pip:
pip install ipycytoscape
or with conda/mamba:
conda install -c conda-forge ipycytoscape
# or with mamba
mamba install -c conda-forge ipycytoscape
JupyterLab Installation¶
If you are using JupyterLab version 1.x or 2.x then you will also need to install nodejs and the jupyterlab-manager extension.
conda install -c conda-forge nodejs
The jupyter-cytoscape
labextension should have been automatically installed for you when you installed
the Python package, but you still need to install the JupyterLab widget manager:
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
# if you already installed the manager you still to run jupyter lab build
jupyter lab build
Old version of Jupyter notebook¶
If you installed via pip, and use Juptyer Notebook with a version < 5.3, you will also have to install / configure the front-end extension as well. If you are using classic notebook (as opposed to Jupyterlab), run:
jupyter nbextension install [--sys-prefix / --user / --system] --py ipycytoscape
jupyter nbextension enable [--sys-prefix / --user / --system] --py ipycytoscape
with the appropriate flag.
If you are installing using conda, these commands should be unnecessary, but If
you need to run them the commands should be the same (just make sure you choose the
--sys-prefix
flag).