Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Connected local Jupyter notebook server to Google Collab

# Step 1: Install Jupyter
# Install Jupyter [https://jupyter.org/install] on your local machine.

# Step 2: Install and enable the jupyter_http_over_ws jupyter extension (one-time)
# The jupyter_http_over_ws extension is authored by the Colaboratory team and available on GitHub [https://github.com/googlecolab/jupyter_http_over_ws].

#pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws

#Step 3: Start server and authenticate
#New notebook servers are started normally, though you will need to set a flag to explicitly trust WebSocket connections from the Colaboratory frontend.

jupyter notebook 
  --NotebookApp.allow_origin='https://colab.research.google.com' 
  --port=8888 
  --NotebookApp.port_retries=0
    
# Once the server has started, it will print a message with the initial backend URL used for authentication. Make a copy of this URL as you'll need to provide this in the next step.

# Step 4: Connect to the local runtime
# In Colaboratory, click the "Connect" button and select "Connect to local runtime...". Enter the URL from the previous step in the dialog that appears and click the "Connect" button. After this, you should now be connected to your local runtime.
Comment

PREVIOUS NEXT
Code Example
Shell :: How to Install and Configure doctl on MacOS 
Shell :: ubuntu badge settings not showing 
Shell :: To get process ID 
Shell :: installing appwrite on docker 
Shell :: bash add options to script 
Shell :: to check for hidden repository 
Shell :: git: Download specific commit from git repository : remote 
Shell :: fatal: unable to access error setting certificate verify locations ca-bundle.crt CApath: none 
Shell :: git: Download specific file from Github website 
Shell :: msysgit display end 
Shell :: how to read an input in bash 
Shell :: gnome-desktop-item-edit install for kali 
Shell :: how to install ConfigServer Mail Manage in whm? 
Shell :: dnf install specific version 
Shell :: delete fg linux 
Shell :: conda install simplejson 
Shell :: i2c-tools, i2c 
Shell :: pwsh exit script 
Shell :: how to run built in automated test of your project in django 
Shell :: github cli on rpi 
Shell :: pacman install fzf 
Shell :: download ubuntu 20 from gdrive 
Shell :: activating virtual environment in linux access denied 
Shell :: create react app run linting check 
Shell :: Use Kubespray to deploy a Production Ready Kubernetes Cluster 
Shell :: find #SUID 
Shell :: bash enum 
Shell :: autpep8 format 
Shell :: influxdb save time range to csv 
Shell :: smbclient 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =