Multiprocessing: how to run Blockly generated code in Python on Nov. 19, 2017 at 12:30 p.m. in R-M120

Blockly is a front-end GUI developed by Google that allows developers to create a drag-and-drop language for their product. However Blockly only generates a string and does not run code directly. I will take a look at the various potential approaches to execute code that is in a string: exec - quick for short commands subprocess - can be interrupted * multiprocessing - can pass data back and forth by using queues

The talk is mainly about launching processes, dealing with zombies, interrupting processes based on user input and passing data back and forth between processes. Brief mentions of Flask are to be expected. Examples will be based on my experience in developing Bloxter a graphical drag-and-drop language for the GoPiGo3 to be used at home or in classrooms.


Speaker

Nicole Parrot

Nicole has a varied background, with over a decade of C/C++ development, 15 years of homeschooling and teaching kids in school and after school programs, and now a Raspberry Pi specialist working with Dexter Industries and using Python to develop products for school robotics. My main goal is to integrate programming and robotics inside the normal curriculum and not as a competition-oriented afterschool program. Every child should have a chance to see if she likes this field and the best way to reach everyone is to make it a part of the normal curriculum. With that in mind, I have been the main developer of Bloxter, a simple drag and drop language based on Blockly, that allows kids to get started quickly with the GoPiGo3 and teachers to integrate robotics in their regular classes.