Comments (2)
Using exec(open(script.py).read())
to run the script looks a little odd to me. But I haven't worked with pyzo IDE to know if this is required or not.
The behavior you describe is kinda expected. When the sketch is done with the draw loop, it simply calls the exit()
function which brings us out of the interpreter. I don't think removing this exiting behavior will affect any other thing. If someone removes it, I'll be happy to merge those changes.
from p5.
Closing this for now as the behavior is as expected and I can't think of a reasonable workaround. Feel free to reopen, if you have additional comments on this.
from p5.
Related Issues (20)
- Weird jittery behavior when `background()` is not called in `draw()` while using the skia renderer. HOT 12
- Exclude building test files into distribution builds HOT 2
- extend CI tests for windows and mac-os platform HOT 2
- Too many open files error when loading many images HOT 3
- Migrate to poetry HOT 4
- save() throws an error HOT 2
- Errors using "CORNERS" mode HOT 5
- Error installing p5 package: Failed building wheel for PyOpenGL-accelerate HOT 13
- Inconsistency between mouse_is_pressed boolean and mouse_clicked function HOT 1
- Improve installation instructions to account for unuspported Python versions HOT 6
- Setup pre-commit HOT 3
- Optimize skia rendering loop
- KeyError: 'SQAURE' when using stroke_cap(SQUARE) HOT 5
- Fix Code Formatting to Resolve Flake8 Errors in Pre-commit Hook HOT 4
- ModuleNotFoundError: No module named 'npy_tempita' when installing P5. HOT 3
- Not compatible with Python >=3.11 HOT 6
- Unable to install p5 and ml5 in python HOT 2
- pip cant install p5 HOT 3
- Cannot install p5 package with Python 3.12 HOT 5
- Unable to run custom setup and draw HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p5.