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
First, copy over the contents from jupyter-manifold
cd ../jupyter-manifold
yarn
yarn build
Build the JS code
cd js
yarn
yarn 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
If running python setup.py install
for the first time, the following two commands need to be executed (these should only need to be executed once).
jupyter nbextension install --py --symlink --sys-prefix mlvis
jupyter nbextension enable --py --sys-prefix mlvis
Run
Start the Jupyter Notebook directly under this directory:
jupyter notebook
Build
To build the package into the example directly, please use the following command:
python setup.py sdist bdist_wheel
mv dist ../../examples/jupyter/
To test the built package in the example folder, go to mlvis-toolkit/examples/jupyter, and perform the following stepts:
- start a virtual environment
- run
pip install -r requirements.txt
- run
pip install ./dist/mlvis-[version].tar.gz
- execute
jupyter notebook
there.
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 Distribution
Built Distribution
Hashes for mlvis-0.0.5a1.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67bb145f50c772ce568a1cb95f85c7d0945011dac6a2fb3978a9f807e288658c |
|
MD5 | 65f6b1473a29005e7bae5d997c45f284 |
|
BLAKE2b-256 | 12009bdf1d8233b60a35f7f36fe2efb080c85099693edd960d274676cdd56a36 |