4 ms·
The FAQ states that “Mojo is still early and not yet a Python superset, so only simple programs can be brought over as-is with no code changes.” I have no idea
by asqueella 3y ago
The FAQ states that “Mojo is still early and not yet a Python superset, so only simple programs can be brought over as-is with no code changes.”
I have no idea how to reconcile that with the quotes you provided.
[edit] Ah, it seems you can control things running in a bundled CPython:
plt = Python.import_module("matplotlib.pyplot")
fig = plt.figure(1, [width, height], dpi)
ax = fig.add_axes([0.0, 0.0, 1.0, 1.0], False, 1), "hsv", 0, 0, 1.5)
...
plt.imshow(image)