stu
stu
Thanks for the reply. What I'm looking to do is allow a user to write something akin to following code (in the browser): ```python from p5 import * def setup():...
I think what I really wanted was the following sort of api: ```javascript const p = new p5({ globalObject: __main__, // a namespace defaults to window onSetProperty(prop, val) {}, //...
How skulpt works: See [trinket.io](https://trinket.io/) as an example in action. When the code is compiled to javascript it executes inside a scope. The local python variables and functions are attached...
Yes 2/3 is basically exactly what I need except that the `__main__` namespace already exists and so I can't override it but need to work with it.
Sure but then on each draw I'd also need things like `__main__.frameCount` to have updated.
It's very niche. Thanks for the link - though JavaScript is definitely the best implementation for skulpt (it's python in the browser compiled to JavaScript - even more niche). p5...
> - [ ] 3.8 Walrus operator (if there's interest in supporting pre-3.8) Just to say we have a use case for targeting 3.7. Thanks for the great work on...
> detecting broken internal references doesn't seem to be a thing It seems even with `[foo][]` and a definition of ``` ## References [foo]: foo.md ``` breaking the link doesn't...
yes VSCode
I wanted to re-open this. Context - we currently use python version 4, and are often a version behind plotly latest. Whilst being largely backward compatible is useful. Not having...