Skip to main content

A wrapper around react components for use in jupyter notebooks

Project description

Jupyter Bindings

Integrate MLVis packages to Jupyter notebook.

Install

pip install mlvis

Then install the nbextension into the Jupyter notebook

jupyter nbextension install --py --symlink --sys-prefix mlvis
jupyter nbextension enable --py --sys-prefix mlvis

Development

Javascript
cd js-lib
yarn
yarn run build
Python

It is recommended to first start a virtual environment in the project folder:

python -m venv venv
source venv/bin/activate

To run the code directly under this directory, the Jupyter nbextension needs to be installed in this local environment:

python setup.py install

To build the package into the example directly, please use the following command:

python setup.py sdist bdist_wheel
mv dist ../../examples/jupyter/
Run

Start the Jupyter Notebook directly under this directory:

jupyter notebook

If the package has been built into the example folder, go to mlvis-toolkit/examples/jupyter, and perform the following stepts:

  1. start a virtual environment
  2. run pip install -r requirements.txt
  3. run pip install ./dist/mlvis-[version].tar.gz
  4. execute jupyter notebook there.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlvis-0.0.4.tar.gz (3.9 MB view hashes)

Uploaded Source

Built Distribution

mlvis-0.0.4-py3-none-any.whl (5.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page