Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:advanced:jupyter [2022/06/21 15:59] – [Step 2: Download the source code for the Jupyter Common Lisp kernel] arthurtutorials:advanced:jupyter [2022/07/06 11:40] (current) – [Step 2: Download the source code for the Jupyter Common Lisp kernel] gkazhoya
Line 9: Line 9:
 You need Python3 to install the newest version of JupyterLab. You need Python3 to install the newest version of JupyterLab.
  
-This installation was tested on Ubuntu 16.04 but should work on 18.04 and 20.04 as well.+This installation was tested on Ubuntu 16.04 and 20.04 (python 3.8).
  
  
Line 39: Line 39:
 $ catkin_create_pkg jupyter $ catkin_create_pkg jupyter
 $ cd jupyter $ cd jupyter
-$ curl -O https://raw.githubusercontent.com/cram2/cram/jupyter/common-lisp-jupyter.rosinstall +$ curl -O https://raw.githubusercontent.com/cram2/cram/boxy-melodic/jupyter/common-lisp-jupyter.rosinstall 
-$ wstool merge common-lisp-jupyter.rosinstall && wstool update+wstool init && wstool merge common-lisp-jupyter.rosinstall && wstool update 
 +$ roscd && cd .. 
 +$ catkin_make # or catkin build if this workspace has been build like that before 
 </code> </code>
  
Line 85: Line 87:
  
 <code bash> <code bash>
-jupyterlab+jupyter-lab
 </code> </code>
  
Line 104: Line 106:
 $ sudo -E python3 get-pip.py $ sudo -E python3 get-pip.py
 </code> </code>
-But maybe you should just update your Ubuntu. +But maybe you should just update your Ubuntu. Before 20.04 python 2.7 is the default, after it's 3.6+. Check your version with 'python --version', and also your 'pip --version', because whether you install package with pip or pip3 will only install it for the respective version. 
-Or maybe ask friend or the internet to help you getting Jupyter to run.+ 
 +If there are multiple people working on the same PC and you want to install the stuff only for yourself, you can specify that with 'pip install --user <package>'
 + 
 +When the jupyter installation tells there are version requirements for certain packages you can install the specific version like this. Check the required version from your command prompt, it may be different from this. 
 +<code bash> 
 +# use pip3 instead if pip is for python2 
 +pip install --user traitlets==5.2.2.post1 
 +pip install --user ipython==7.23.1 
 +</code> 
 +That specific version of traitlets also fixes a bug with jupyter-lab. ipython can be outdated if previously installed via aptitude.
  
 === Step 3 === === Step 3 ===