datasette-export-notebook by simonw

97 downloads this week        Star

Screenshot of simonw/datasette-export-notebook

README source code


PyPI Changelog Tests License

Datasette plugin providing instructions for exporting data to a Jupyter or Observable notebook.


Install this plugin in the same environment as Datasette.

$ datasette install datasette-export-notebook


Once installed, the plugin will add a .Notebook export option to every table and query. Clicking on this link will show instructions for exporting the data to Jupyter or Observable.


You can see this plugin in action on the Datasette instance - for example on /github/commits.Notebook.


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

cd datasette-export-notebook
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and tests:

pip install -e '.[test]'

To run the tests: