Skip to main content

Connect to the last started kernel or by connection file.

Project description

jupyter_existing_provisioner

This package register existing_provisioner endpoint for attach to the running jupyter kernel.

pip install jupyter_existing_provisioner
# check endpoint
jupyter pyxll install

Based on PyXLL-Jupyter.

Requirements

  • Jupyter-client >= 7.0.0

Optional

  • jupyterlab >= 4.0.0

Installation

To install this package use:

pip install jupyter_existing_provisioner

Once installed register existing_provisioner endpoint for jupyter_client.

# check endpoints
jupyter kernelspec provisioners

Jupyter Lab

# prepare working environment
pip install qtconsole
python embed_qtconsole.py

# connect to the last kernel
jupyter lab --KernelProvisionerFactory.default_provisioner_name=existing-provisioner

# linux: connect to the kernel-xxxx.json file 
EXISTING_CONNECTION_FILE=kernel-xxxx.json jupyter lab --KernelProvisionerFactory.default_provisioner_name=existing-provisioner

# windows: connect to the kernel-xxxx.json file 
set EXISTING_CONNECTION_FILE=kernel-xxxx.json
jupyter lab --KernelProvisionerFactory.default_provisioner_name=existing-provisioner

In the working kernel show connection info magic %connect_info

Google Colab

Connect instruction

# prepare for connect colab
pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws

jupyter lab --KernelProvisionerFactory.default_provisioner_name=existing-provisioner \
    --ServerApp.allow_origin='https://colab.research.google.com'

Start Google Colab and connect to the local environment - url from terminal.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file jupyter_existing_provisioner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jupyter_existing_provisioner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for jupyter_existing_provisioner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 681c5b635b7ee3cd3968da4124e8e6b6130849ea2274290487337be23f2dc308
MD5 cb7b256658f41d1c50f1d82f003d6f5b
BLAKE2b-256 6fbb87b45683decb73da030cd44995819f16e9115ddcb146e6dfb6d51dfbdd6f

See more details on using hashes here.

Supported by

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