Skip to main content

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

serveable-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

serveable-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for serveable-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5ba1bca30dbe497050402cd8beb5462d922d778a5de1b6ed910d26199b091913
MD5 7833ecd2f78993920785ec3f0938f2c2
BLAKE2b-256 411531d4944df585f843a36a56fd72bf6224ae37ac798b16ab76be28e3c4b2fc

See more details on using hashes here.

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

Hashes for serveable-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a483104edb8f8ba72d14ed84a5aa0e0ef6face4500f46e61993e3a1172b8789
MD5 cc6534d6236d963f4a217a9e5017e9bd
BLAKE2b-256 95f7404ef8399242596968a5a666067d697490e290e02a9d23fa3d98a8eb043f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page