An adaptation of the Verdant library for logging jupyter lab events in Science Capsule.
Project description
Jupyterlab Scicap Verdant
This project is an adaptation of the Verdant project for Science Capsule. Events from Verdant are intercepted and sent to an API so that jupyter events can be stored with other Science Capsule events.
Verdant
🌱🌿🌱 Verdant is a JupyterLab extension that automatically records history of all experiments you run in a Jupyter notebook, and stores them in a tidy .ipyhistory JSON file designed to be work alongside and compliment any other version control you use, like SVN or Git. Verdant also visualizes history of individual cells, code snippets, markdown, and outputs for you, for quick checks and references as you work.
For design discussion and the research behind this check out the paper:
Mary Beth Kery, Bonnie E. John, Patrick O’Flaherty, Amber Horvath, and Brad A. Myers. 2019. Towards Effective Foraging by Data Scientists to Find Past Analysis Choices. In Proceedings of ACM SIGCHI, Glasgow, UK, May 2019 (CHI’19), 11 pages. DOI: 10.475/123 4
Install for Local Development
If developing and making changes to the package locally, run the following commands after making changes:
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Enable the server extension
jupyter server extension enable jupyterlab_scicap_verdant
# Rebuild extension Typescript source after making changes
jlpm run build
Check that the extension is installed and enabled:
jupyter labextension list
Run jupyterlab:
jupyter lab
Build and Publish
First rebuild the labextension and commit changes.
jlpm run build
pip install -e .
git commit add .
git commit -m "My updates"
Then upgrade the package version using npm.
npm version patch
Then build the python distribution.
jlpm run build:dist
Then publish the .whl
file to pypi.
jlpm run publish
In order to publish, you will have to authenticate with pypi and your account must have permission to administer the jupyterlab-scicap-verdant package on pypi.
Acknowledgements
The original Verdant library was authored by Mary Beth Kery. Research has been funded by Bloomberg L.P. and has been conducted at the Bloomberg L.P. and at the Natural Programming Group at the Human-Computer Interaction Institute at Carnegie Mellon University. Thank you to the JupyterLab project and also to all our awesome study participants for volunteering early design feedback!
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 Distributions
Built Distribution
File details
Details for the file jupyterlab_scicap_verdant-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: jupyterlab_scicap_verdant-0.1.1-py3-none-any.whl
- Upload date:
- Size: 430.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c19a2dc551bb5554382ec4bf00b7db646b8c083b7eef710f21a8acfddeba695a |
|
MD5 | b3d299bac45008bd9394624b68be2d33 |
|
BLAKE2b-256 | 0f3beb64492f4d16dc7274825d0f2d6fd92e69d319bf5927b7c10ff16fc4924a |