Skip to content

plotting issue #19

@mburnskaurin

Description

@mburnskaurin

This runs in normal 3.2 but with WASM it does not

https://flaskdstorehost-dhppn6xgeq-uc.a.run.app/#/user/burnskaurinm/folder/testnewvpython/program/multigraphplay

I get this error message.

[<vpython.core_funcs.gcurve object at 0x1aaf620>, <vpython.core_funcs.gcurve object at 0x2022398>, <vpython.core_funcs.gcurve object at 0x19bb278>, <vpython.core_funcs.gcurve object at 0x1f95940>]
Error:PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async
await CodeRunner(
File "/lib/python312.zip/_pyodide/_base.py", line 411, in run_async
coroutine = eval(self.code, globals, locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 14, in
File "", line 11, in do_this
File "/home/pyodide/vpython/core_funcs.py", line 304, in plot
self.jsObj.plot(*args, **kwargs)
File "https://www.glowscript.org/package/glow.3.2.min.js", line 1, in gobject.plot
File "https://www.glowscript.org/package/glow.3.2.min.js", line 1, in checkval
pyodide.ffi.JsException: Error: A quantity to plot must be an ordinary number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions