JupyterLite as a Datasette plugin
Project description
datasette-jupyterlite
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
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
Close
Hashes for datasette-jupyterlite-0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ae879d3de7683028d3e28cb238d971b9cd208fd5eff45f081ea478a5f23a18 |
|
MD5 | 65d6fbfb42430a1bb35c6f06d54bf1f4 |
|
BLAKE2b-256 | a3fe0c7481c4d174c04faf554d75c51999f7715bb259efdb9f8d2c3dfac27f92 |
Close
Hashes for datasette_jupyterlite-0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4779fd02f55be3ea9d9d2223d8883cc14a40da2b0b71c065318cd84d6f3f1814 |
|
MD5 | ced71c93cfc3538c3ba358993a645950 |
|
BLAKE2b-256 | 8bf2432f3d457da9daff42770db648f50406452072d81ea95b10826b9aef00d8 |