Skip to content

Latest commit

 

History

History

jupyter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Install remotely on a Ubuntu 16.04 server and visulize by Jupyter Notebook

Install mayavi

  • remote servers usually lack GUI supports, so first some libraries and backends should be installed
(base)$ sudo apt-get update && sudo apt-get install libgl1-mesa-glx xvfb
(base)$ conda create -n kitti_vis python=3.7
(base)$ conda activate kitti_vis
(kitti_vis)$ pip install opencv-python pillow scipy matplotlib xvfbwrapper
(kitti_vis)$ conda install mayavi -c conda-forge
  • install jupyter notebook
(kitti_vis)$ pip install notebook
  • install ipywidgets and ipyevents, enable them as notebook extensions
(kitti_vis)$ pip install ipywidgets ipyevents
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix widgetsnbextension
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix ipyevents
  • install and enable mayavi extension
(kitti_vis)$ jupyter nbextension install --py --sys-prefix mayavi
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix mayavi
(kitti_vis)$ export ETS_TOOLKIT='null'
  • then you can test mayavi intallation by this notebook, which should show an interactive 3D curve

Use Jupyter Notebook for kitti visulization

  • Here is a simple demo.

Note: the above installation is tested successful on an official PyTorch docker image.