A Python library for loading JS visualizations into jupyter notebooks.
Project description
Roundtrip
An library for loading and managing Javascript code and visualization in Jupyter notebook cells.
This lubrary supports:
- Loading HTML, CSS, and JavaScript Files
- Loading Webpack Generated Files
- Passing Jupyter-scoped data into Javascript code
- Returnng Javascript generated data back to the calling Jupyter Notebook
- Binding data between Jupyter-notebook and Javascript visualizations
- Automatic updating of bound visualizations enabling:
- fluid gui-scripting based workflows
- linked views across cells
Important Links
Try It Out
- Install Jupyter notebook & Node.js
- Clone this repository:
git clone https://github.com/hdc-arizona/roundtrip.git
- Run the automatic installer:
cd roundtrip
chmod +x install.sh
./install.sh
- Start a jupyter server from the
roundtripbase directory:
jupyter notebook
- From your web browser navigate to the
docs/examples/folder and open theManual Workflow Examplenotebook.
On load, you may need to clean the output by running Restart & Clear Output
from the Kernel menu in Jupyter.
Running the cells in the first example will demonstrate:
- The loading of a real pandas dataset into a javascript visualization
- Interaction with the visualization
- Returning data back from the visualization to the Jupyter notebook
Once you understand the functionality in this notebook please open the Advanced Workflow Example
Running the cells in this example will demonstrate:
- The
?operator and how it links python data with visualization data - How the
?can provide linked-view functionality between cells - How the linking of data and automatic updating of cells can be easily turned off by removing the
? - How cells update when data is update inside the jupyter notebook as well as in the visualizations
License
Roundtrip is distributed under the terms of the MIT license.
All contributions must be made under the MIT license. Copyrights in the Roundtrip project are retained by contributors. No copyright assignment is required to contribute to Roundtrip.
See LICENSE and NOTICE for details.
SPDX-License-Identifier: MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roundtrip-lib-0.2.1.tar.gz.
File metadata
- Download URL: roundtrip-lib-0.2.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8afe656b029c7cdc403fe92c7647f479e654a7af3b6203a1de49b36da927f377
|
|
| MD5 |
689c11994640c5d0cd7499b0eb5701bd
|
|
| BLAKE2b-256 |
6dc2abd9dd8676946bda4aa59d0b4733396a9bc8ab72c55fc4954d92866a1476
|
File details
Details for the file roundtrip_lib-0.2.1-py3-none-any.whl.
File metadata
- Download URL: roundtrip_lib-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1645c828777e32d2ef9a5cd3f04082cdf4bb87cd678014ca14212b1e1c0b5af4
|
|
| MD5 |
befa1785190af03edcddf40e3306929c
|
|
| BLAKE2b-256 |
6067a6500beae321fa59d47ebf4279109a84259651e93a90e458c52721cb17d8
|