Hi Everyone, Question about RUN and "Stop".. Running Win10, ESP32. What is the best way to STOP running code?? (D id there used to be a STOP button?)
MPY: soft reboot
raw REPL; CTRL-B to exit
(THEN DISPLAYS any PRINT from code)
How to STOP??
I click REPL and code stops, and full editor window displayed
I click REPL again and REPL displays, showing the (POWERON_RESET ... down to >>> prompt)
@tjguk:matrix.org : Thanks for the clear reply. Hmm.. I am working with a program that will have about 150 elementary-middle school kids with no coding experience, learning Python in an online environment : example:( https://hourofpython.trinket.io/a-visual-introduction-to-python#/welcome/an-hour-of-code) That's great to start.. But I am working on a project that bridges those kids AFTER they really learn some Python, to Python3 and MicroPython(esp32) using mu. And that trinket thing charges $3 per seat per month for Python3 and Pygame etc. OpenSourceRules!
I will try to get the first-phase of online students to tell us what their home computer hardware is. Hmm is there a good online app that will do that for an online user?? So I hope to have a better perspective on the need to a 32-bit installer. Not QuickCritical.
Thanks and let me know what you think...
import math class Object: def __init__(self, x, y, z): self.x = x self.y = y self.z =z Volume = x * y * z print(Volume) def area(self): Area = self.x * self.z print(area) eObject = Object
ERROR: Could not find a version that satisfies the requirement pygame<2.0,>=1.9.2 (from pgzero)
Area = self.x * self.zbut then
print(area)I think you should change
areaand you'll get a result printed. Also, you may also want to just
return area. When you instantiate the object it should look like this:
eObject = Object(x=3, y=4, z=5)etc...
eObject=Object(3, 4, 5))
@ntoll I am running Python 3.9.7 but am encountering issues much like thos reported by @urbainy.
pip3 install mu-editor==1.1.0b7
RROR: Could not find a version that satisfies the requirement mu-editor==1.1.0b7
ERROR: No matching distribution found for mu-editor==1.1.0b7
pip3 install mu-editor
RROR: Cannot install mu-editor==1.0.0, mu-editor==1.0.1, mu-editor==1.0.2 and mu-editor==1.0.3 because these package versions have conflicting dependencies.
The conflict is caused by:
mu-editor 1.0.3 depends on matplotlib==2.2.2
mu-editor 1.0.2 depends on matplotlib==2.2.2
mu-editor 1.0.1 depends on matplotlib==2.2.2
mu-editor 1.0.0 depends on matplotlib==2.2.2
To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Hi Everyone, (NewBieAlert) Problem with page https://codewith.mu/en/tutorials/1.1/ (Shows available tutorials)..
One tutorial is "Adafruit Boards and Mu" click and see [Adafruit make a wide variety of a...]
Another tutorial is "MicroPython on ESP" Click and.. (it goes to the Adafruit tutorial).
MinorWish: The REPL tutorial is good. There are specific examples of the button bands for Python3 and Adafruit and BBC micro:bit
It WouldBeNice if there was one for the ESP Micropython REPL. :-)
I will leave this here for anyone who may be able to look in to it. This function shows the problem:
from time import strftime
while True: string = strftime("%H:%M:%S") print(string, end="\r") time.sleep(1)
The output should not redraw on a new line but it does... (\r should cause it to overwrite on the same line) ... Thank you tjguk