Jupyter HTTP-over-WebSocket is a Jupyter server extension (version 0.0.8) maintained by the Google Colaboratory team. It enables Jupyter notebooks to proxy HTTP traffic over WebSockets, which is crucial for bypassing browser-imposed cross-domain HTTP restrictions when connecting to a localhost Jupyter server. The project has a low release cadence, with the last update in March 2020.
pip install jupyter_http_over_wsNo compatibility data collected yet for this library.
This quickstart installs the necessary package, enables the server extension, and starts a Jupyter Notebook server configured to allow connections from a specified origin (e.g., Google Colab) via HTTP-over-WebSocket. The `--no-browser` flag is recommended to manually open the authentication URL in your preferred browser, ensuring the necessary auth cookie is set.
After starting the Jupyter server, copy the authentication URL printed in the terminal and paste it into the browser you intend to use for connection. Using `--no-browser` flag and opening the link manually is recommended. If issues persist, try an incognito window to rule out browser extension conflicts.
Only allow connections from trusted origins (e.g., `https://colab.research.google.com`). Always ensure you trust the authors of any notebook you execute and understand the code's implications on your local machine. Refer to Jupyter's security documentation for more details.
Ensure you open the URL provided by the Jupyter server (e.g., `http://localhost:8888/?token=...`) in the browser you are using to connect from. Using the `--no-browser` flag and manually navigating to this URL helps guarantee the cookie is set. An incognito window can resolve issues caused by browser extensions.
Do not use `--pylab` on the command line when starting Jupyter Notebook. If you need `pylab` or `matplotlib` integration, use the magic commands (`%pylab` or `%matplotlib`) directly within your Jupyter notebook cells. Ensure your Jupyter installation is up-to-date.
No dependency data recorded yet.