jupyter-widgets / ipyleaflet

A Jupyter - Leaflet.js bridge
https://ipyleaflet.readthedocs.io
MIT License
1.47k stars 359 forks source link

How to install ipyleaflet for JupyterHub #1191

Open JosephKuchar opened 2 months ago

JosephKuchar commented 2 months ago

Hi,

I have a new installation of jupyterhub following the instructions in jupyterhub the hard way, where jupyterhub is installed in its own virtual environment, and then all user packages are installed in conda environments. I've installed the jupyter-widgets in the virtualenv, but my question is where and how should ipyleaflet be installed in this kind of environment? Our team's previous jupyterhub became broken overtime and widgets stopped working due to (I believe) conflicting packages being installed in multiple environments, so I'd like to make sure I'm following best practices from the start if I can!

Thanks, Joseph Kuchar

minrk commented 1 month ago

conda install -p /path/to/user/env ipyleaflet should install ipyleaflet in the user's environment, where /path/to/user/env is the prefix (i.e. the singleuser server command is /path/to/user/env/bin/jupyterhub-singleuser)