GithubHelp home page GithubHelp logo

hello432369 / p5-notebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtpio/p5-notebook

0.0 0.0 0.0 1.49 MB

A Jupyter Notebook environment for p5.js kernels running in the browser, powered by JupyterLite

Home Page: https://p5nb.now.sh

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

TypeScript 8.21% CSS 77.12% JavaScript 3.24% Shell 1.69% Python 9.75%

p5-notebook's Introduction

p5-icon p5-notebook p5-icon

Github Actions Status

A minimal Jupyter Notebook UI for p5.js kernels.

intro-retro

Usage

โœจ Try it in your browser! โœจ

Features ๐ŸŽ

Opens with RetroLab by default ๐Ÿ“’

By default, the p5 notebook opens with the simpler retro interface.

intro-retro

JupyterLab interface ๐Ÿงช

The JupyterLab interface is still accessible via the View > Open in JupyterLab menu:

open-jupyterlab

Live preview of HTML-based sketches โšก

With the JupyterLab interface, .html files can be edited and rendered live with the built-in HTML viewer:

html-viewer

Support for themes ๐ŸŒˆ

The p5 notebook includes the default JupyterLab Light and Dark themes, as well as p5.js branded Light and Dark themes:

themes

Support for additional display languages ๐ŸŒ

Just like in JupyterLab, the p5 notebook also supports additional display languages like French and Simplified Chinese:

display-languages

Real Time Collaboration

Users can edit code and work together on the same sketch:

rtc

JupyterLab and RetroLab features ๐ŸŽจ

Most of the JupyterLab and RetroLab features are also available, such as switching to the Simple Interface and opening the command palette:

simple-palette

Dev install

This repo includes a couple of additional plugins to tweak the Jupyter UI. To setup a local environment and be able to iterate on them, make sure Node.js is installed, then:

# Clone the repo to your local environment
# Change directory to the fork directory

# create a new enviroment
mamba create --name p5-notebook -c conda-forge python=3.9 yarn jupyterlab jupyter-packaging
conda activate p5-notebook

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

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

# Rebuild the extension Typescript source after making changes
jlpm run build

Related projects

p5-notebook's People

Contributors

jtpio avatar dependabot[bot] avatar westurner 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.