• Stars
    star
    244
  • Rank 165,399 (Top 4 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 1 year ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

the very good free whiteboard tldraw in the jupyter output

Jupyter Tldraw

PyPI version image

Installation:

python3.11 -m venv .venv
pip install jupyterlab
pip install tldraw
jupyterlab   (or alternative VS Code Jupyter Lab)

Example

from tldraw import TldrawWidget
t = TldrawWidget()
t

MakeReal Example

from tldraw import MakeReal
from api_key import api_key

m = MakeReal(width=1002, height = 500, api_key = api_key)
m

INFO: To use GPT4-Vision, you need an API key.

How do I get my API key?

  1. Create an OpenAI account at OpenAI
  2. In your Openai API account, navigate to Settings > Billing
  3. Click Add to credit balance
  4. Add at least $5 to your account
  5. Navigate to API Keys
  6. Click Create new secret key
  7. Copy the key to your clipboard.
  8. Back on your jupyter-tldraw folder, paste the key into the API key into a new file called api_key.py
  9. Add the key in this form: api_key = "sk-*************************".
  10. Add api_key.py into your gitignore. WARNING: Don't upload your API KEY on GitHub!

Now you're ready to run!

For transparency, this is how the key is used:
https://github.com/kolibril13/jupyter-tldraw/blob/main/src/tldraw/prompt.py#L5-L47

Changelog

2.0.7

*increase number of output tokens to 4096

2.0.6

Tweak prompt parameter.

2.0.5

Add requests module Tweak readme

2.0.4

Add experimental SVG/PNG export.
Add experimental .txt export.
Add makereal

2.0.3

Update to version 2.0.0-alpha.19

2.0.2

Add experimental TldrawImageArray

2.0.1

Switch to new version: @tldraw/[email protected] (Version from 6th November2023)

2.0.0

  • simplify to minimal template

1.0.0

  • Rename notebooks, and prepare 2.0.0 release.

0.1.5

  • add .venv to gitignore, so that it's not uploaded to pypi by hatch build.

0.1.4

  • Add experimental TldrawSegmentation

0.1.3

  • format toml

0.1.2

  • replace ipyreact backend with anywidget backend.
    • this will make this package more reliable, because all js and css is shipped via pip and not anymore via cdn.
  • Remove JupyterLite build.
  • Remove experimental files.

0.1.1

  • add update_plot in TldrawMatplotlib

0.1.0

  • Added TldrawMatplotlib

0.0.3

  • refactor readme
  • add jupyterlite demo

0.0.2

  • refactor code

0.0.1

  • init setup

More Repositories

1

ipyblender-experimental

Blender in Jupyter.
Jupyter Notebook
103
star
2

ipyMolecularNodes

molecular plots in Jupyter, powererd by Blender Geometry Nodes
Jupyter Notebook
55
star
3

manimplotlib

Collection of scripts to animate matplotlib plots with manim
Jupyter Notebook
48
star
4

mobject-gallery

Gallery of math objects in manim
Jupyter Notebook
34
star
5

plywood-gallery

Gallery like documentation, where code snippets are represented by images.
HTML
27
star
6

jupyter-splitview

Making before/after image sliders in JupyterLab
Jupyter Notebook
21
star
7

flyingframes

Manim Tutorials
Jupyter Notebook
15
star
8

plywood-gallery-functions

Jupyter Notebook
9
star
9

ipyreactflow

JavaScript
6
star
10

manim_share

Jupyter Notebook
5
star
11

ipymafs

Interactive math react components in jupyter
Jupyter Notebook
4
star
12

jupyter-caputure-output

A cell magic that captures jupyter cell output
Jupyter Notebook
3
star
13

pyscript-emoji-skimage

PyScript applet that applies scikit-image algorithms to emojis
Python
3
star
14

jupyter_video_presentation

Jupyter Notebook
3
star
15

okapi

this repo is deprecated
3
star
16

ct-uncovered

A react app to explore how image reconstuction in ct scanners work
JavaScript
3
star
17

ct-scanner-webapp

Ein interaktiver CT Scanner für den Browser.
Jupyter Notebook
2
star
18

manim-3b1b-kolibril-backup

backup from the work I did with manim 3b1b before switching to manimce, see my recent work here: https://github.com/kolibril13/manim
Python
2
star
19

plywood-gallery-matplotlib-examples

2
star
20

plywood-gallery-matplotlib-ImageGrid

https://kolibril13.github.io/plywood-gallery-matplotlib-ImageGrid/
Jupyter Notebook
2
star
21

anywidget-jupyterlite

Anywidget apps in JupyterLite
Jupyter Notebook
2
star
22

plywood-gallery-napari

Experimental example gallery for napari
Jupyter Notebook
1
star
23

tricks_for_python

Jupyter Notebook
1
star
24

mystjs-minimal-example

A minimal template for mystjs
1
star
25

mystjs-media-example

Jupyter Notebook
1
star
26

revealjs-video-branching

Proof of concept to show how a main video story can branch into sub-video stories
SCSS
1
star
27

plywood-gallery-minimal-example

Minimal example for a plywood gallery based on github.com/kolibril13/plywood-gallery
Jupyter Notebook
1
star
28

jupytercon23-lightning-talk

1
star
29

manim_demo_revealjs

SCSS
1
star
30

plywood-gallery-matplotlib-scalebar

Jupyter Notebook
1
star
31

anywidget-3dviewer-GLTF

3dviewer-GLTF for Jupyter
JavaScript
1
star
32

davinci-resolve-notebooks

Jupyter Notebook
1
star
33

matplotlib_comparison

Jupyter Notebook
1
star
34

jupyter-cellmixer

A cellmagic that manipulates the jupyter cell content in unconventional ways
Jupyter Notebook
1
star