datasette-hovercards by simonw

7 downloads this week        Star

README source code


PyPI Changelog Tests License

Add preview hovercards to links in Datasette


Install this plugin in the same environment as Datasette.

$ datasette install datasette-hovercards


Once installed, hovering over a link to a row within the Datasette interface - for example a foreign key reference on the table page - should show a hovercard with a preview of that row.

For a live demo, hover over values in the user, milestone or repo columns on this table page:


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

cd datasette-hovercards
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: