1.0.0-alpha.5 • Published 3 years ago

@jku-icg/trrack-notebook-vis v1.0.0-alpha.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Trrack-Notebook-Vis Library

npm (scoped)

This library is used by jupyterlab_nbprovenance, an extension for JupyterLab to track provenance in notebooks. The provenance information is stored using the provenance tracking library trrack. This fork of Trrack-vis enhances the provenance visualization with features for notebooks.

Development

git clone https://github.com/JKU-ICG/trrack-notebook-vis.git
cd trrack-notebook-vis/
npm install

Use npm commands

  • npm t: Run test suite
  • npm start: Run npm run build in watch mode
  • npm run test:watch: Run test suite in interactive watch mode
  • npm run test:prod: Run linting and generate coverage
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code

Together with Jupyterlab Extension

  1. Follow the Development instructions of the extension: jupyterlab_nbprovenance
    Make sure you use the same Python environment (i.e., where JupyterLab is installed with extension).
  2. Link this library: jupyter labextension link --minimize=False
    If you don't link this library, JuypterLab will pull its own copy of this library from npm and local changes won't show up.
    Disabling the minifier is optional, but minimizig the code is not necessary locally and it reduces the build time a little.
  3. You can verify the setup with: jupyter labextension list
    This should list the extension and this library as local extension and linked package, respectively.
  4. Make Code changes
  5. Rebuild application: npm run build
    JupyterLab updates itself, due to the --watch parameter
  6. Refresh JupyterLab

Publish

Make sure to npm login with the user icgbot first.

npm pack --dry-run  # verify files
npm publish

Resources

Project created using Typescript library starter by alexjoverm