Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Programming for CP #171

Open
s-light opened this issue Mar 26, 2024 · 4 comments
Open

Visual Programming for CP #171

s-light opened this issue Mar 26, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@s-light
Copy link

s-light commented Mar 26, 2024

i like the idea to program CP in a visual way

this is a follow up from #20 (comment)

Initial Idea / thoughts:

i personally like the flow based version more than the blockly approach,
as its more of a real visual abstraction & appealing design..

Integration in current web-editor

  • add a side-by-side or top-bottom panel with the graphical representation
  • this way you can switch between both representations and ways to code seamlessly.
  • example for this for blockly: BlockMirror

Libraries

create a automagic conversion system to parse the libraries and create components for them.
(maybe as a build job on the library builds...)
as otherwise you would have no libs to use..
(its a to big burden for the lib maintainers to generate something special for the editor i think...)

Flow Based

  • for parallel branches of a graph we could use asyncio)
  • for sub-graphs we could use extra files that gets imported
    • that would make it very tidy in both representations

link collection


what do you think about this?
would be a PR including some simple beginner friendly visual editor be an option?

conclusion

it would be reasonable possible to include blockly based on the BlockMirror project in the web-editor.

after more research on the available flow-based UIs i think there is currently no easy fitting framework/library out there.. (without writing all the code-generation myself)

and there are already running editors available -
so is there any benefit in integrating it here?

@s-light
Copy link
Author

s-light commented Mar 29, 2024

what do you think about this?
would be a PR including some simple beginner friendly visual editor be an option?

and there are already running editors available -
so is there any benefit in integrating it here?

@makermelissa i love to hear your thought on this! 🙂

@dhalbert
Copy link
Contributor

There is https://edublocks.org, which was developed by Josh Lowe, and has been available for years. It is now available under the auspices of Anaconda. It knows about CircuitPython. It does not know about the web workflow, but I'm sure that could be added.

@s-light
Copy link
Author

s-light commented Mar 29, 2024

so you mean - it is better to integrate the web-workflow in this one?
(than the other way around)

@dhalbert
Copy link
Contributor

I don't have an opinion about that. It depends on the structure of EduBlocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants