Giter Site home page Giter Site logo

Comments (6)

alexis-gruet-deel avatar alexis-gruet-deel commented on June 24, 2024

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.

jobdiogenes avatar jobdiogenes commented on June 24, 2024

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.

alexis-gruet-deel avatar alexis-gruet-deel commented on June 24, 2024

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.

jobdiogenes avatar jobdiogenes commented on June 24, 2024

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.

alexis-gruet-deel avatar alexis-gruet-deel commented on June 24, 2024

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.

mathfac avatar mathfac commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.