Tuesday, 18 February 2020

Use Colab with Private Server Instead of Free Run-time Environment

Google Colab by default provides free run-time environment, in order to connect to personal or private servers, do these:
  1. Install jupyterlab on server:
    1. ssh MYSERVER
    2. sudo yum install jupyterlab
  2. Open terminal, create SSH port channelling:
    1. ssh -L 8888:localhost:8888 MYSERVER
    2. Leave this terminal open
  3. Open another terminal, start Jupyter
    1. ssh MYSERVER
    2. jupyter notebook [THIS WON'T WORK]
    3. jupyter notebook like in this guide:
      https://research.google.com/colaboratory/local-runtimes.html
    4. Get the localhost URL shown
  4. Switch to Colab to connect
    1. Click the run-time box at top-right
    2. Click 'Connect to local run-time'
    3. Use the URL gotten above.
    4. Edit the IPython notebook as usual
  5. To edit other files:
    1. Open new browser tab
    2. Paste the localhost link above
    3. Navigate and click a file to edit.

No comments:

Post a Comment