Coder Social home page Coder Social logo

tjaisson / jupyterlite-capytale Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quantstack/jupyterlite-capytale

0.0 0.0 0.0 274 KB

JupyterLite deployment for integration with Capytale

Home Page: https://quantstack.net/jupyterlite-capytale/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 0.73% Python 21.83% TypeScript 71.80% CSS 5.64%

jupyterlite-capytale's Introduction

JupyterLite Capytale

lite-badge

Extension and demo to integrate JupyterLite with Capytale.

Structure

This repository contains a JupyterLab extension to integrate JupyterLite with Capytale, and a demo to show how to use it.

Extension

The extension is located in the src folder. It sets up a bridge between a host application and a JupyterLite instance by using postMessage to communicate between the two.

To install and develop the extension, see the Development and Usage sections below.

Demo

The demo is located in the demo folder:

  • index.html: the main entry point of the demo
  • content: a few example notebooks
  • overrides.json: default set of override JupyterLab settings to customize the UI, to use a default display language, hide buttons and menu entries, etc...
  • requirements.txt: list of Python packages to install before building the JupyterLite site

This demo is also deployed on GitHub pages and available at https://quantstack.net/jupyterlite-capytale.

Development

# Clone the repo to your local environment

# Create a new environment
mamba create -n jupyterlite-capytale -c conda-forge python=3.11 jupyterlite-pyodide-kernel=0.2 jupyterlab=4 notebook=7

# Activate the environment
mamba activate jupyterlite-capytale

# Install package in development mode
python -m pip install -e .

# Link your development version of the extension
jupyter labextension develop . --overwrite

# Rebuild extension Typescript source after making changes
jlpm build

Usage

Build a new JupyterLite site:

# build the demo
jlpm demo:build

# serve the demo
jlpm demo:build

Then go to http://localhost:8000 to open the demo.

jupyterlite-capytale's People

Contributors

jtpio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.