Unofficial Python API client for Jupyter
Project description
Jupyter API Client
Setup
pip install jupyter-api-client
example
- initialize client
from jupyter_api import JupyterClient
TOKEN = os.getenv("JUPYTER_TOKEN")
client = JupyterClient(host="localhost:8888", schema="http", token=TOKEN)
- create kernel
kernel_id = client.create_kernel(language="python3")
- run linux command or code
print(client.execute_code(f"!ls -l", kernel_id, cell=False))
print(client.execute_code(f"print('hello world')", kernel_id))
- delete kernel
client.delete_kernel(kernel_id)
- upload file
client.upload_file("README.md", "README.md")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyter-api-client-0.0.3.tar.gz.
File metadata
- Download URL: jupyter-api-client-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89bc7902d6b0d554c66fb3659400f43d08d920f11043d87632189ad1fb877cdc
|
|
| MD5 |
5450b63206ad004c6899a1d992585514
|
|
| BLAKE2b-256 |
bc480b963728440aa9bd3b97c1d05bf3e748b2e3951c09ee4ea85ff54130db43
|
File details
Details for the file jupyter_api_client-0.0.3-py3-none-any.whl.
File metadata
- Download URL: jupyter_api_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
177949bbc52cf94ada6affd5fe266cee194d651f34ce1374d23763e0212b33d6
|
|
| MD5 |
37778397296172f748256cb76a1a7399
|
|
| BLAKE2b-256 |
bcb5565b3d7f99975de4ef9fce27d9aad3cb3e78ad0aa5aeb3465ac726379794
|