Skip to content

Commit

Permalink
Merge pull request cytoscape#200 from ianhi/install-instructions
Browse files Browse the repository at this point in the history
correct mistakes in install instructions
  • Loading branch information
marimeireles authored Dec 14, 2020
2 parents d2b4b2c + c77effc commit 0e705b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,29 @@ pip install ipycytoscape

#### For jupyterlab users:

There is an aditional step if you're using JupyterLab:
If you are using JupyterLab 1.x or 2.x then you will also need to install `nodejs` and the `jupyterlab-manager` extension. You can do this like so:

```bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-cytoscape
# installing nodejs
conda install -c conda-forge nodejs


# install jupyterlab-manager extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build

# if you have previously installed the manager you still to run jupyter lab build
jupyter lab build
```

And make sure you have an updated version of `nodejs` (>13) and Jupyter Lab in your environment.
### For Jupyter Notebook 5.2 and earlier

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:
You may also need to manually enable the nbextension:
```bash
jupyter nbextension enable --py [--sys-prefix|--user|--system] ipycytoscape
```

## For a development installation:

**(requires npm)**

While not required, we recommend creating a conda environment to work in:
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ or with conda/`mamba <https://github.com/TheSnakePit/mamba>`_::
# or with mamba
mamba install -c conda-forge ipycytoscape

If you are using JupyterLab you will also need to follow the instructions in :ref:`jlab-install-instructions`.

Simple Example
--------------
Expand Down
11 changes: 7 additions & 4 deletions docs/source/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ or with conda/`mamba <https://github.com/TheSnakePit/mamba>`_::
mamba install -c conda-forge ipycytoscape


JupyterLab
----------
.. _jlab-install-instructions:

JupyterLab Installation
-----------------------

In order to install the JupyterLab extension jupyter-cytoscape, you will first need to install nodejs,
you can install it with conda by doing

.. code-block::bash
.. code-block:: bash
conda install -c conda-forge nodejs
The ``jupyer-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:

.. code-block::bash
.. code-block:: bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
Expand Down

0 comments on commit 0e705b4

Please sign in to comment.