Skip to main content

Running a jupyter lab or vs code server environment from colab with google drive support

Project description

gpu_tpu_lab_server

Running a jupyter lab or vs code server environment from colab with google drive support.

references:

fns.colab. Most of the localtunnel colab code is taken from this repo.

Motivation for creating this package

  1. For some reason in fns.colab python package version >=0.5, fns.colab supports jupyter notebook not jupyter lab, so here I am trying to use the previous version of that fns.colab code to support jupyter lab environment and to fix frequent time out and connection issues.> 1. It was boring to copy paste the whole code everytime to start the jupyter lab environment in colab, so I created a package of it.
  2. Also, I wanted to try how to create python package using nbdev, this sounded like a good excuse.

Install

pip install gpu_tpu_lab_server

How to use

from gpu_tpu_lab_server.core import jupyter_lab, vscode, run_process_in_background, run_process_in_foreground

For starting the server in google colab with google_drive support

To enable jupyter_lab_environment

  1. execute jupyter_lab()
  2. an authorization window will open with a link, go to the link > select your google account > accept all the permissions > authorization code will be displayed > copy and paste the code in the window
  3. an localtunnel link will be returned, go to that link, wait for 10 second, then press open tunnel button, it will open an jupyter lab environment

To enable vscode() environment

  1. execute vscode() optional parameter any text :- the generated link will have the text or by default fastdaima
  2. an authorization window will open with a link, go to the link > select your google account > accept all the permissions > authorization code will be displayed > copy and paste the code in the window
  3. an localtunnel link will be returned, go to that link it will open an vscode server environment

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpu_tpu_lab_server-0.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpu_tpu_lab_server-0.0.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file gpu_tpu_lab_server-0.0.6.tar.gz.

File metadata

  • Download URL: gpu_tpu_lab_server-0.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gpu_tpu_lab_server-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9f64516132445eeb7840740c4de63cd3e089545dd0ebd7ebba484636c6a01289
MD5 57cc71495064b0680612360667c3fb88
BLAKE2b-256 896a1f062a78c91e3e9f72290b1c327e6276d46e96e9bcf71c93f9fc6adc6f05

See more details on using hashes here.

File details

Details for the file gpu_tpu_lab_server-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gpu_tpu_lab_server-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gpu_tpu_lab_server-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bed42f5b56a815621a00c32c4073804f2bb29181391731a07ea18397ce0185a9
MD5 b2f069a6d72fb31023f7a7a1465f4e2d
BLAKE2b-256 f0a604263b25f0b248fe4aad1afeb27207ffdde8cbc9db3678326d88942b5242

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page