@@ -133,7 +133,8 @@ In the Mac App Store version and on iOS, =python= blocks run in Pyodide 314.0.8,
133
133
134
134
What differs from =python3=:
135
135
136
- Only the standard library is there. =numpy=, =matplotlib= and other packages are not, and can't be installed: =import numpy= fails with =ModuleNotFoundError=. A block with =:results graphics= fails with "Python blocks can't draw graphics in this version of orgstar: matplotlib isn't included." A =:file= result that is the block's value or output is written as for any other language.
136
- Only the standard library is there. =numpy=, =matplotlib= and other packages are not, and orgstar doesn't install them: =import numpy= fails with =ModuleNotFoundError=. Loading a package from the network with =pyodide_js.loadPackage= and its URL works, but isn't supported. A block with =:results graphics= fails with "Python blocks can't draw graphics in this version of orgstar: matplotlib isn't included." A =:file= result that is the block's value or output is written as for any other language.
137
- The block can reach the network, as a web page can: =urllib.request=, =js.fetch= and =pyodide.http= work.
137
138
- The block can't see your files or start programs. It runs in Pyodide's own file system, in =/home/pyodide=, and files it writes there are not kept. =:dir= must name a folder that exists, but the block doesn't run in it. =input()= reads nothing.
138
139
- =:python= is ignored.
139
140
- Every block runs in one interpreter. A block without a session gets its own variables, but modules it imports stay loaded, with any changes it made to them, until Pyodide is unloaded. A session keeps its variables until then too.
@@ -452,6 +452,8 @@ On iOS, only Emacs Lisp, JavaScript, Python, calc, sqlite, dot and mermaid block
452
452
- Python with =:results graphics=: "Python blocks can't draw graphics in this version of orgstar: matplotlib isn't included."
453
453
- A calc or sqlite block orgstar can't run as Emacs would: "This calc block can't be calculated here: /reason/." or "This sqlite block can't run here: /reason/."
454
454
455
Python blocks can reach the network: =urllib.request=, =js.fetch= and =pyodide.http= work. Only the standard library is built in; loading a package from the network with =pyodide_js.loadPackage= and its URL works, but isn't supported.
456
455
457
Table formulas that orgstar computes itself work on iOS. In a table whose formulas need Emacs, orgstar applies the formulas up to the first one that needs it and stops there, as Emacs does when a formula fails: the fields written before it stay and the rest are unchanged. The message is "The table was recalculated up to /formula/, which needs Emacs on the Mac", with the formula's left-hand side and the reason. When nothing was written, it is "This table needs Emacs, which runs on the Mac", with the reason, and the table is unchanged.
456
458
457
459
Tangling (=C-c C-v t=, in Commands) works on iOS and writes the tangled files next to the org file, or where =:tangle= says.