Skip to main content

JupyterLite as a Datasette plugin

Project description

datasette-jupyterlite

PyPI Changelog Tests License

JupyterLite as a Datasette plugin

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-jupyterlite

Demo

You can try out a demo of the plugin here: https://latest-with-plugins.datasette.io/jupyterlite/

Run this example code in a Pyolite notebook to pull all of the data from the github/stars table into a Pandas DataFrame:

import pandas, pyodide

df = pandas.read_csv(pyodide.open_url(
  "https://latest-with-plugins.datasette.io/github/stars.csv?_labels=on&_stream=on&_size=max")
)

Usage

Once installed, visit /jupyterlite/ to access JupyterLite served from your Datasette instance.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-jupyterlite
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

datasette-jupyterlite-0.1a1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

datasette_jupyterlite-0.1a1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file datasette-jupyterlite-0.1a1.tar.gz.

File metadata

  • Download URL: datasette-jupyterlite-0.1a1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for datasette-jupyterlite-0.1a1.tar.gz
Algorithm Hash digest
SHA256 e7ae879d3de7683028d3e28cb238d971b9cd208fd5eff45f081ea478a5f23a18
MD5 65d6fbfb42430a1bb35c6f06d54bf1f4
BLAKE2b-256 a3fe0c7481c4d174c04faf554d75c51999f7715bb259efdb9f8d2c3dfac27f92

See more details on using hashes here.

File details

Details for the file datasette_jupyterlite-0.1a1-py3-none-any.whl.

File metadata

  • Download URL: datasette_jupyterlite-0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for datasette_jupyterlite-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 4779fd02f55be3ea9d9d2223d8883cc14a40da2b0b71c065318cd84d6f3f1814
MD5 ced71c93cfc3538c3ba358993a645950
BLAKE2b-256 8bf2432f3d457da9daff42770db648f50406452072d81ea95b10826b9aef00d8

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