Developer Installation¶
Install Jupyter-ROS¶
Clone repository
$ git clone git@github.com:RoboStack/jupyter-ros.git $ cd jupyter-ros
Create a conda environment for development with the following packages
python = 3.9
jupyterlab
jupyter-packaging
nodejs <= 15
ros-noetic-desktop
# You can use conda as well $ mamba create -n jupyros_env python=3.9 jupyterlab jupyter-packaging nodejs=15 ros-noetic-desktop -c conda-forge -c robostack $ mamba activate jupyros_end
Install jupyter-ros in editable mode
# From the jupyter-ros root directory $ pip install -e .
Symlink the JupyterLab extension
$ jupyter labextension develop . --overwrite
Verify installation with Python
import jupyros print(jupyros.__file__) # Should return /home/user/jupyter-ros/jupyros/__init__.py
Build Documentation¶
Create a new conda environment with the following dependencies:
sphinx
myst-parser
jinja2 <= 3.0
sphinx-rtd-theme
# You can use conda as well $ mamba create -n jupyros_docs sphinx myst-parser jinja2=3.0 -c conda-forge $ mamba activate jupyros_docs $ pip install sphinx-rtd-theme
[Optional] Install
jupyter-ros
in the environment. This is only necessary for the References page to display correctly; otherwise, there will be a few warnings in the next step.Build the documents
$ cd jupyter-ros/docs/ $ make html
Open the documentation locally
$ cd build/html/ $ python -m http.server
From a web browser, navigate to
localhost:8000