Serveable
Serveable opens web applications running inside a remote Jupyter environment, such as Noteable, in a separate browser tab.
It uses jupyter-server-proxy to make a server running on an internal
port accessible through Jupyter's authenticated web connection.
Installation
In a Jupyter or Noteable notebook:
%pip install --user serveable
One-Time Setup
Run:
import serveable
serveable.setup()
Save the notebook and restart the whole Jupyter or Noteable server. Restarting only the Python kernel is not sufficient.
The setup step normally only needs to be performed once for each account.
Serving a folder
For a static web application:
from serveable import serve
serve(
"~/PathFinding.js",
page="visual/index.html",
label="Open PathFinding.js"
)
Serveable starts a web server on an available port and displays a link that opens the application in a separate browser tab.
Linking to an existing server
If another program has already started a server:
from serveable import link
link(
port=8050,
page="",
label="Open application"
)
Stopping the static server
from serveable import stop
stop()
Re-running serve() automatically stops the previous static server
started by Serveable.
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 serveable-0.0.1.tar.gz.
File metadata
- Download URL: serveable-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ba1bca30dbe497050402cd8beb5462d922d778a5de1b6ed910d26199b091913
|
|
| MD5 |
7833ecd2f78993920785ec3f0938f2c2
|
|
| BLAKE2b-256 |
411531d4944df585f843a36a56fd72bf6224ae37ac798b16ab76be28e3c4b2fc
|
File details
Details for the file serveable-0.0.1-py3-none-any.whl.
File metadata
- Download URL: serveable-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a483104edb8f8ba72d14ed84a5aa0e0ef6face4500f46e61993e3a1172b8789
|
|
| MD5 |
cc6534d6236d963f4a217a9e5017e9bd
|
|
| BLAKE2b-256 |
95f7404ef8399242596968a5a666067d697490e290e02a9d23fa3d98a8eb043f
|