Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/datasette-export-notebook
Datasette plugin providing instructions for exporting data to Jupyter or Observable
https://github.com/simonw/datasette-export-notebook
datasette-io datasette-plugin
Last synced: 4 months ago
JSON representation
Datasette plugin providing instructions for exporting data to Jupyter or Observable
- Host: GitHub
- URL: https://github.com/simonw/datasette-export-notebook
- Owner: simonw
- Created: 2021-01-06T07:37:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T18:59:37.000Z (over 1 year ago)
- Last Synced: 2024-10-06T20:52:54.354Z (5 months ago)
- Topics: datasette-io, datasette-plugin
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datasette-export-notebook
[](https://pypi.org/project/datasette-export-notebook/)
[](https://github.com/simonw/datasette-export-notebook/releases)
[](https://github.com/simonw/datasette-export-notebook/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-export-notebook/blob/main/LICENSE)Datasette plugin providing instructions for exporting data to a [Jupyter](https://jupyter.org/) or [Observable](https://observablehq.com/) notebook.
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-export-notebook
## Usage
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.
## Demo
You can see this plugin in action on the [latest-with-plugins.datasette.io](https://latest-with-plugins.datasette.io/) Datasette instance - for example on [/github/commits.Notebook](https://latest-with-plugins.datasette.io/github/commits.Notebook).
## Development
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/activateOr if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest