-
@hx2A -- is there a way to use imported mode outside of Jupyter? I tried, but I still need a import py5
from py5 import *
def settings():
size(500, 500)
def setup():
fill(255, 0, 0)
no_stroke()
def draw():
circle(py5.mouse_x, py5.mouse_y, 10)
print(py5.frame_count)
run_sketch() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yes! There is a command line utility called
I've been focusing most of my "imported mode" efforts into Jupyter so I haven't put as much effort into this command line tool lately. But it should work. Save the below code to a file and pass the file to that utility:
|
Beta Was this translation helpful? Give feedback.
-
Fantastic! Thanks 😄 |
Beta Was this translation helpful? Give feedback.
Yes! There is a command line utility called
run_sketch
:I've been focusing most of my "imported mode" efforts into Jupyter so I haven't put as much effort into this command line tool lately. But it should work. Save the below code to a file and pass the file to that utility: