JupyterLite as a Datasette plugin

Overview

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

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
You might also like...
IDA Pro plugin that shows the comments in a database
IDA Pro plugin that shows the comments in a database

ShowComments A Simple IDA Pro plugin that shows the comments in a database Installation Copy the file showcomments.py to the plugins folder under IDA

Poetry workspace plugin for Python monorepos.

poetry-workspace-plugin Poetry workspace plugin for Python monorepos. Inspired by Yarn Workspaces. Adds a new subcommand group, poetry workspace, whic

A plugin for poetry that allows you to execute scripts defined in your pyproject.toml, just like you can in npm or pipenv

poetry-exec-plugin A plugin for poetry that allows you to execute scripts defined in your pyproject.toml, just like you can in npm or pipenv Installat

tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel

tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel. This project is inspired by tox-travis.

A simple IDA Pro plugin to show all HexRays decompiler comments written by user
A simple IDA Pro plugin to show all HexRays decompiler comments written by user

XRaysComments A simple IDA Pro plugin to show all HexRays decompiler comments written by user Installation Copy the file xray_comments.py to the plugi

A Klipper plugin for accurate Z homing
A Klipper plugin for accurate Z homing

Stable Z Homing for Klipper A Klipper plugin for accurate Z homing This plugin provides a new G-code command, STABLE_Z_HOME, which homes Z repeatedly

A QGIS integration plugin for Kart repositories

QGIS Kart Plugin A plugin to work with Kart repositories Installation The Kart plugin is available in the QGIS Plugins server. To install the latest v

Tutor plugin for integration of Open edX with a Richie course catalog
Tutor plugin for integration of Open edX with a Richie course catalog

Richie plugin for Tutor This is a plugin to integrate Richie, the learning portal CMS, with Open edX. The integration takes the form of a Tutor plugin

HashDB Binary Ninja Plugin

HashDB Plugin (v0.1) Author: Vector 35 Inc Plugin for interacting with the OALABS HashDB service. Description: Plugin that can be used to lookup hashe

Comments
  • Jupyter Snippet Cells / Default Notebook

    Jupyter Snippet Cells / Default Notebook

    Would it be possible to define some N cells that would be automatically inserted into a newly created notebook? For example, one currently needs to know how to import pandas, pyodide, and reference the local database. Would be great if that was configured by default. Or to have markdown introduction that would mention any instructions/gotcha/etc that apply to the environment.

    opened by dbready 0
  • Load notebooks from database

    Load notebooks from database

    Very intrigued by this extension. I am wondering if it could be hacked so that it could be populated with notebooks stored in the database (with or without saved cell output). Almost like a self-hosted Colab notebook with analysis + data. My potential use cases:

    • I do an analysis with my ridiculously heavy (ie out of scope for Pyodide) Python environment and store the input + output cells into a notebook for read-only consumption.
    • Have a pre-populated notebook with input + optional output cells that allow the reader to execute/modify queries to poke at some data that might be trickier to handle in SQL. Or to provide markdown context surrounding what a query means.

    Thinking out loud, it feels like there is a potential tie in with the Executable Book format to distribute an entire class in a file.

    -Gushing fan boy who loves this project.

    opened by dbready 0
  • Utility functions for loading data from Datasette

    Utility functions for loading data from Datasette

    Currently if you are inside JupyterLite and you want to load data from the host Datasette instance into a DataFrame or similar you need to do this:

    from js import fetch
    from io import StringIO
    import pandas
    
    df = pandas.read_csv(
      StringIO(await (await fetch("https://latest-with-plugins.datasette.io/github/stars.csv")).text())
    )
    

    It would be great if there was a less boilerplate heavy way of doing this.

    JupyterLite enhancement 
    opened by simonw 1
Releases(0.1a1)
Owner
Simon Willison
Simon Willison
A simple but flexible plugin system for Python.

PluginBase PluginBase is a module for Python that enables the development of flexible plugin systems in Python. Step 1: from pluginbase import PluginB

Armin Ronacher 1k Dec 16, 2022
A Linux webcam plugin for BGMv2 as used in our demos.

The goal of this repository is to supplement the main Real-Time High Resolution Background Matting repo with a working demo of a videoconferencing plu

Andrey Ryabtsev 144 Dec 27, 2022
flake8 plugin which forbids match statements (PEP 634)

flake8-match flake8 plugin which forbids match statements (PEP 634)

Anthony Sottile 25 Nov 1, 2022
A minimalist production ready plugin system

pluggy - A minimalist production ready plugin system This is the core framework used by the pytest, tox, and devpi projects. Please read the docs to l

pytest-dev 876 Jan 5, 2023
A simple but flexible plugin system for Python.

PluginBase PluginBase is a module for Python that enables the development of flexible plugin systems in Python. Step 1: from pluginbase import PluginB

Armin Ronacher 935 Feb 20, 2021
A PDM plugin to publish to PyPI

PDM Publish A PDM plugin to publish to PyPI NOTE: Consider if you need this over using twine directly Installation If you installed pdm via pipx: pipx

Branch Vincent 20 Aug 6, 2022
Poetry plugin to bundle projects into various formats

Poetry bundle plugin This package is a plugin that allows the bundling of Poetry projects into various formats. Installation The easiest way to instal

Poetry 54 Jan 2, 2023
Simple card retirement plugin for Anki

Anki Retirement Addon Allow users to suspend, tag, delete, or move cards that reach a specific retirement interval Supports Anki version 2.1.45 Licens

null 3 Dec 23, 2022
A maubot plugin to invite users to Matrix rooms according to LDAP groups

LDAP Inviter Bot This is a maubot plugin that invites users to Matrix rooms according to their membership in LDAP groups.

David Mehren 14 Dec 9, 2022
Plugin to generate BOM + CPL files for JLCPCB

KiCAD JLCPCB tools Plugin to generate all files necessary for JLCPCB board fabrication and assembly Gerber files Excellon files BOM file CPL file Furt

bouni 566 Dec 29, 2022