Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Jupyter Lite instance runs completely in your browser, powered by Pyodide

License

Notifications You must be signed in to change notification settings

Lightning-Universe/JupyterLite_component

Repository files navigation

A Lightning component to launch a JupyterLite instance


Lightning license Tests

About

This component lets you launch a JupyterLite instance, which provides a way to serve Jupyter Notebooks completely in the browser.

How is it different from Jupyter Lab?

JupyterLite runs completely in the browser but JupyterLab needs a server to launch and run.

At this moment not all the usual features available in JupyterLab and the Classic Notebook will work with JupyterLite, but many already do!

To learn more about JupyterLite please visit the official JupyterLite documentation.


install

Use these instructions to install:

Using Lightning CLI

lightning install component lightning/jupyterlite

Install from GitHub repository

git clone https://github.com/Lightning-AI/LAI-jupyterlite-Component.git
cd LAI-jupyterlite-Component
pip install -r requirements.txt
pip install -e .

How to use the component

To launch a Jupyter Lite instance in your app, you need to create an object of JupyterLite class and call the run method in the flow.

Example

import lightning as L
from lai_jupyterlite import JupyterLite


class YourApp(L.LightningFlow):
    def __init__(self):
        super().__init__()
        self.jupyter_lite = JupyterLite()

    def run(self):
        self.jupyter_lite.run()


app = L.LightningApp(YourApp())

About

Jupyter Lite instance runs completely in your browser, powered by Pyodide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages