Open Kshitij09 opened 4 years ago
How did you install jupyter? Via homebrew? I was having the same issue until I uninstalled all local copies of jupyter installed via pip and pip3, then I followed the instructions here and install the latest version of python via pyenv, then installed jupyter via homebrew. I then did 'pip3 install jupyter_http_over_ws' and the command to enable the extension worked fine.
I was working on colab so it was preinstalled
I uninstalled global (not in venv) jupyter notebook and it worked
@Kshitij09 I am facing the same issue with Google Colab.
make sure if your whole working environment is installed with pip then use pip otherwise use pip3. for example, my whole environment of anaconda , python library, jupyter notebook was installed with pip but i was enabling the second command as you mentioned in question with pip3. I got the same error as you but when i tried installing with pip and enabled using pip , it worked. It showed the following error after executing second command. Then again installed the library using pip as the following. And finally it worked. Hope it helps.
If you installed your enviroment with conda, try to install the jupyter_http_over_ws package also via conda:
conda install -c conda-forge jupyter_http_over_ws
Then you should be able to enable the serverextension using:
jupyter serverextension enable --py jupyter_http_over_ws
After that run the following code also in PowerShell and you'll receive the url with the tokencode for Colab in there:
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' \ --port=9090 --no-browser
Thanks @nicoelbert , worked for me.
make sure if your whole working environment is installed with pip then use pip otherwise use pip3. for example, my whole environment of anaconda , python library, jupyter notebook was installed with pip but i was enabling the second command as you mentioned in question with pip3. I got the same error as you but when i tried installing with pip and enabled using pip , it worked. It showed the following error after executing second command. Then again installed the library using pip as the following. And finally it worked. Hope it helps.
Can you please it does work with Ubuntu 20 version
If you installed your enviroment with conda, try to install the jupyter_http_over_ws package also via conda:
conda install -c conda-forge jupyter_http_over_ws
Then you should be able to enable the serverextension using:
jupyter serverextension enable --py jupyter_http_over_ws
After that run the following code also in PowerShell and you'll receive the url with the tokencode for Colab in there:
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' \ --port=9090 --no-browser
This is still working, thanks!
+1 to reply by @dronenb . Installing jupyter notebook in a new virtualenv worked for me (i.e. such that the system jupyter is not used).
I've tried installing jupyter_http_over_ws_extension with pip, pip3, and conda. It installs successfully but when I try to enable it I get this error.
"jupyter serverextension enable --py jupyter_http_over_ws", is what I'm trying to use to enable the library
I read the markupsafe/init.py file and did not see a function or method named "soft_unicode".
I'd appreciate it if you tell me what to do to fix this error.
For me, the issue was fixed after re-install. Did you try that?
Also, your prompt starts with (base) $
. Are you sure you did the installs in the (base) environment? I would recommend to make a separate environment to avoid confusion of versions.
I'm following the instructions described here.
The very second step to enable
jupyter_http_over_ws
jupyter extension gives following error:Tried installing
tornado==5.1
as mentioned in #5Also tried upgrading the package:
pip install --upgrade jupyter_http_over_ws