These are chat archives for ipython/ipython

Nov 2015
Nov 18 2015 05:26
Hi, how should I modify this to handle non root installation? at the moment it tryes to copy the JS code in /usr/local/share/jupyter/nbextensions/ and fails to install if not ran as root. I’d like to add the option to install the files in /home/$USER/.local/jupyter/nbextensions or /home/$USER/.jupyter/nbextensions.
This the src code for the (it is a fork, I’m trying to study the code),
it uses jupyter-pip.
I started to add on top of this code borrowed from ipython-contrib/IPython-notebook-extensions/ … but seems that who is handling all the installation is jupyter-pip .. so i got confused on how to continue and tell jupyter-pip which path needs to be preferred (/usr/local/jupyter if accessible, /home/$USER/.xxx/ if not).