Skip to main content

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

  1. Install Jupyter notebook & Node.js
  2. Clone this repository:
git clone https://github.com/hdc-arizona/roundtrip.git
  1. Run the automatic installer:
cd roundtrip
chmod +x install.sh
./install.sh
  1. Start a jupyter server from the roundtrip base directory:
jupyter notebook 
  1. From your web browser navigate to the docs/examples/ folder and open the Manual Workflow Example notebook.

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:

  1. The loading of a real pandas dataset into a javascript visualization
  2. Interaction with the visualization
  3. 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:

  1. The ? operator and how it links python data with visualization data
  2. How the ? can provide linked-view functionality between cells
  3. How the linking of data and automatic updating of cells can be easily turned off by removing the ?
  4. 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


Download files

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

Source Distribution

roundtrip-lib-0.2.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roundtrip_lib-0.2.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

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

Hashes for roundtrip-lib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8afe656b029c7cdc403fe92c7647f479e654a7af3b6203a1de49b36da927f377
MD5 689c11994640c5d0cd7499b0eb5701bd
BLAKE2b-256 6dc2abd9dd8676946bda4aa59d0b4733396a9bc8ab72c55fc4954d92866a1476

See more details on using hashes here.

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

Hashes for roundtrip_lib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1645c828777e32d2ef9a5cd3f04082cdf4bb87cd678014ca14212b1e1c0b5af4
MD5 befa1785190af03edcddf40e3306929c
BLAKE2b-256 6067a6500beae321fa59d47ebf4279109a84259651e93a90e458c52721cb17d8

See more details on using hashes here.

Supported by

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