Skip to content

ETH-PEACH-Lab/datascience-visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy

Binder

Show a random NASA Astronomy Picture of the Day in a JupyterLab panel.

Requirements

  • JupyterLab >= 4.0.0

Installation

To install the extension, execute:

pip install cluster_viz

Uninstallation

To remove the extension, execute:

pip uninstall cluster_viz

Development Setup

To set up the development environment, follow these steps:

1. Create the Conda Environment

Run the following command to create a new environment with JupyterLab 4, Node.js, Git, Copier, and other required packages:

conda create -n galaxy --override-channels --strict-channel-priority -c conda-forge -c nodefaults jupyterlab=4 nodejs=20 git copier=9 jinja2-time

2. Activate the Environment

Activate the Conda environment:

conda activate galaxy

3. Install the Extension in Development Mode

Install the package with pip in editable mode:

pip install -ve .

4. Install Node.js Dependencies

Run the following command to install JavaScript dependencies:

jlpm install

5. Watch for Changes

Start the watch process to automatically rebuild the extension when source files are modified:

jlpm watch

6. Run JupyterLab

In a separate terminal, activate the conda environment and run JupyterLab:

jupyter lab

With jlpm watch running in one terminal and JupyterLab in another, every saved change will automatically rebuild the extension. Refresh JupyterLab to load the updated extension in the browser.

Packaging

For instructions on how to package and release the extension, refer to the RELEASE file.

For instructions on how to deploy the extension, refer to the DEPLOYMENT file.

Project Structure

datascience-visualisation/
│
├── src          # Frontend logic
└── backend      # Backend logic