Comments (6)
Fixed .. by overriding the _AUTH_URL_QUERY_PARAM with the jupyter instance url || another way is to change the jupyter_http_over_ws_auth_url from the GET request with the IP of the jupyter instance.
from jupyter_http_over_ws.
Fixed .. by overriding the _AUTH_URL_QUERY_PARAM with the jupyter instance url || another way is to change the jupyter_http_over_ws_auth_url from the GET request with the IP of the jupyter instance.
I stay have the same problem.
I install pip3 install jupyter_http_over_ws
or from git, both get the same problem.
from jupyter_http_over_ws.
I don't really remember.. I guess pip3 install and then updated directly the code under the pip3 install placeholder for jupyter. Hint :
rgrep -i _AUTH_URL_QUERY_PARAM /usr/ should give you this placeholder.
from jupyter_http_over_ws.
as result of grep -i _AUTH_URL_QUERY_PARAM
Found in 'handlers.py' where has:
_AUTH_URL_QUERY_PARAM = 'jupyter_http_over_ws_auth_url'
You suggest to change to something like:
_AUTH_URL_QUERY_PARAM = "127.0.0.1:8888"
Is this?
from jupyter_http_over_ws.
I had to re-deploy a docker with tf2.1.0 with jupyter on a local GPU instance (in my LAN). On my desktop computer (mac) I installed Whistle proxy (nodejs) and set those 2 rules
^ws://localhost:8899/http_over_websocket?min_version=0.0.7&jupyter_http_over_ws_auth_url=http%3A%2F%2Flocalhost%3A8899%2F ws://192.168.1.119:8899/http_over_websocket?min_version=0.0.7&jupyter_http_over_ws_auth_url=http%3A%2F%2F192.168.1.119%3A8899
^ws://localhost:8899/http_over_websocket/proxied_ws/api/kernels/***/channels?session_id=***&jupyter_http_over_ws_auth_url=*** ws://192.168.1.119:8899/http_over_websocket/proxied_ws/api/kernels/$1/channels?session_id=$2&jupyter_http_over_ws_auth_url=http%3A%2F%2F192.168.1.119%3A8899
Where 192.168.1.119
is my local GPU. This will redirect the websocket stream from colab to my local GPU and make it works perfectly.
I just notice something, if you launch a long task (say a training) don't reload colab othwerwise you will not be able to reconnect/re-bind the colab notebook (limitation of jupyter itself)
from jupyter_http_over_ws.
Thank you @MI-LA01 your solution works! I had the same issue, when actual machine jupyter notebook is running isn't local host. I used the Eternal Terminal with port forwarding.
I had to patch handlers.py
file:
vim /home/ubuntu/anaconda3/lib/python3.6/site-packages/jupyter_http_over_ws/handlers.py
Change _AUTH_URL_QUERY_PARAM = "jupyter_http_over_ws_auth_url"
=> _AUTH_URL_QUERY_PARAM = "127.0.0.1:8888"
Then Colab start connecting to local remote GPU empowered machine successfully.
Command I used to run Jupyter:
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8891 --ip='0.0.0.0' --NotebookApp.port_retries=0 --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.disable_check_xsrf=True --allow-root --no-browser
from jupyter_http_over_ws.
Related Issues (20)
- Tricky installation on Compute Engine VMs leads to unstable Colab notebooks
- Firewall blocking connecting colab to local runtime
- COLAB-LOCAL: Error in parts[[i]] : subscript out of bounds
- enum34 is being installed on Python 3, sometimes breaking other package installs HOT 2
- Blocking Cross Origin API request HOT 2
- [Idea] Showcasing Bazel Integration?
- Connection to google colab issue.
- Automatically enable notebook serverextension via setup.py config
- Error loading server extension — HOT 1
- IOPub data rate exceeded. HOT 1
- Cannot connect when port changes via proxy/ssh HOT 1
- Irregular access time to datasets in subgroups (h5py) from colab HOT 1
- api/session names are URL encoded and display incorrectly in a jupyter server HOT 1
- Seeing a 404 GET
- Sporadically (but often) getting 404 GET error "/api/contents/var/colab/app.log (127.0.0.1): No such file or directory: var/colab/app.log" HOT 4
- Can't force usage of specific kernel
- Connecting to local runtime via Google Cloud SDK
- Auth problem HOT 1
- Not able to connect jupyter local machine to google colab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_http_over_ws.