Giter VIP home page Giter VIP logo

p5-kernel's Introduction

JupyterLite

ci-badge lite-badge binder-badge docs-badge

JupyterLite is a JupyterLab distribution that runs entirely in the browser built from the ground-up using JupyterLab components and extensions.

⚡ Status ⚡

Although JupyterLite is currently being developed by core Jupyter developers, the project is still unofficial.

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

Don't hesitate to check out the documentation for more information and project updates.

✨ Try it in your browser ✨

JupyterLite works with both JupyterLab and Jupyter Notebook.

Try it with JupyterLab! Try it with Jupyter Notebook!
lab-screenshot notebook-screenshot

🏗️ Build your own JupyterLite 🏗️

You can build your own JupyterLite website in a couple of minutes, with custom extensions and packages.

See the documentation for more details.

Browser-based Interactive Computing

JupyterLite is all about accessible browser-based interactive computing:

  • Python kernel backed by Pyodide running in a Web Worker
    • Initial support for interactive visualization libraries such as altair, bqplot, ipywidgets, matplotlib, and plotly
  • JavaScript kernel running in a Web Worker
  • View hosted example Notebooks and other files, then edit, save, and download from the browser's IndexDB (or localStorage)
  • Support for saving settings for JupyterLab/Lite core and federated extensions
  • Basic session and kernel management to have multiple kernels running at the same time
  • Support for Code Consoles

Ease of Deployment

  • Served via well-cacheable, static HTTP(S), locally or on most static web hosts
  • Embeddable within larger applications
  • Requires no dedicated application server much less a container orchestrator
  • Fine-grained configurability of page settings, including reuse of federated extensions

Showcase

Jupyter Interactive Widgets

widgets

JupyterLab Mimerender Extensions

image

Matplotlib Figures

image

Altair

altair

Plotly

plotly

Development install

See the contributing guide for a development installation.

Related

JupyterLite is a reboot of several attempts at making a full static Jupyter distribution that runs in the browser, without having to start the Python Jupyter Server on the host machine.

The goal is to provide a lightweight computing environment accessible in a matter of seconds with a single click, in a web browser and without having to install anything.

This project is a collection of packages that can be remixed together in variety of ways to create new applications and distributions. Most of the packages in this repo focus on providing server-like components that run in the browser (to manage kernels, files and settings), so existing JupyterLab extensions and plugins can be reused out of the box.

See also:

  • p5-notebook: A minimal Jupyter Notebook UI for p5.js kernels running in the browser
  • jyve: Jupyter Kernels, right inside JupyterLab
  • Starboard Notebook: In-browser literal notebooks
  • Basthon: A Jupyter notebook implementation using Pyodide

👥 Contributors

Join our community and become a contributor today! 🚀

p5-kernel's People

Contributors

derthorsten avatar github-actions[bot] avatar jtpio avatar m0jpi avatar westurner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

p5-kernel's Issues

Set up a demo site with `jupyterlite-sphinx`

Problem

Since this kernel lives in its own repo it would be useful to have a demo site on ReadTheDocs to test changes more easily.

Suggested Improvement

ReadTheDocs setup with jupyterlite-sphinx and PR previews enabled.

jupyterlite does not start properly

Description

When follwowing #1
p5_error

Reproduce

I followed #7 to get a sucessfull build
When I serve the page I see a blank page and the console-errors as in the screeenshot above

Expected behavior

start jupyterlite

Context

  • JupyterLite version:
  • Operating System and version: ubuntu
  • Browser and version: chrome
Browser Output
Failed to load resource: the server responded with a status of 404 (Not Found)
:8000/jupyter-lite.ipynb:1 Failed to load resource: the server responded with a status of 404 (Not Found)
config-utils.js:200 failed get jupyter-config-data from http://127.0.0.1:8000/lab/jupyter-lite.ipynb
getLiteConfig @ config-utils.js:200
config-utils.js:200 failed get jupyter-config-data from http://127.0.0.1:8000/jupyter-lite.ipynb
getLiteConfig @ config-utils.js:200
consumes:40 Unsatisfied version 5.1.12 of shared singleton module @jupyterlab/coreutils (required ^5.1.13)
getSingletonVersion @ consumes:40
index.js:38 Failed to create module: package: @jupyterlite/p5-kernel-extension; module: ./extension
c @ index.js:38
index.js:469 Error: Shared module @jupyterlite/kernel doesn't exist in shared scope default
    at ensureExistence (consumes:19)
    at consumes:93
    at consumes:78
    at Object.webpack/sharing/consume/default/@jupyterlite/kernel (consumes:123)
    at consumes:159
    at Array.forEach ()
    at Object.__webpack_require__.f.consumes (consumes:142)
    at ensure chunk:6
    at Array.reduce ()
    at Function.__webpack_require__.e (ensure chunk:5)
(anonymous) @ index.js:469
p5js.png:1 Uncaught (in promise) ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization
    at Module.default (p5js.png:1)
    at i.registerPluginModule (app.js:61)
    at app.js:85
    at Array.forEach ()
    at i.registerPluginModules (app.js:84)
    at index.js:480

Distributed file name is too long for windows

Description

At least one file name in the released package is too long for stock windows.

References

Reproduce

  1. be on windows
  2. extract the file
  3. see it fails when used by anything (e.g. del, dir)

Expected behavior

  • can use file correctly

Context

  • JupyterLite version: v0.1.0b3
  • Operating System and version: Windows 10, 21H2
  • Browser and version: n/a
. pre_build:federated_extensions:extract:wheel:https://github.com/jupyterlite/p5-kernel-extension
TaskError - taskid:pre_build:federated_extensions:extract:wheel:@jupyterlite/p5-kernel-extension
PythonAction Error
Traceback (most recent call last):
File "C:\mf\envs\jupyterlite-dev\lib\site-packages\doit\action.py", line 437, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "C:\Users\DanieleMoroni\Documents\dev\jupyterlite\py\jupyterlite\src\jupyterlite\addons\federated_extensions.py", line 188, in _extract
zf.extractall(td, members)
File "C:\mf\envs\jupyterlite-dev\lib\zipfile.py", line 1633, in extractall
self._extract_member(zipinfo, path, pwd)
File "C:\mf\envs\jupyterlite-dev\lib\zipfile.py", line 1687, in _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\DANIEL~1\AppData\Local\Temp\tmpw3svaf97\jupyterlite_p5_kernel-0.1.0a12.data\data\share\jupyter\labextensions\@jupyterlite\p5-kernel-extension\static\vendors-node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_cssW-926fd9.34687ead919a402e3146.js'

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.