Mathics3 / mathics-django

Django front-end to Mathics
Other
102 stars 10 forks source link

MathicsDjango (through Docker, MacOS) doesn't render 3d graphics #149

Open CATboardBETA opened 2 years ago

CATboardBETA commented 2 years ago
Screen Shot 2022-04-28 at 5 35 02 PM
rocky commented 2 years ago

I have noticed this also without Docker on Ubuntu and Windows.

There is some interaction between mathics-backend-threejs, mathics-core and mathics-django went off somewhere.

I've noticed that if you display axes these sometimes appear and you can scroll them around.

@TiagoCavalcante maybe you can look at when you get a chance?

rocky commented 2 years ago

Also should mention that in browsers when I set a breakpoint on call to graphics3D they don't occur. And I don't see console error messages.

So somehow whatever ajax mechanism that ensured that the HTML graphics3d tags get called is not longer occurring.

rocky commented 2 years ago

There is an updated docker image now that fixes this. See digest 430d13daa04a

The pygraphics modules don't work fo on the 5.0.0 mathics-core API yet. But that is probably small.

TiagoCavalcante commented 1 year ago

@rocky Mathics Django isn't working with latest mathics-core and mathics-scanner:

  File "/usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/core/convert/op.py", line 19, in <module>
    assert osp.exists(
AssertionError: ASCII operator to Unicode tables are missing from /usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/data/op-tables.json
error: failed to create database

Are you having the same issue?

rocky commented 1 year ago

I am not having an issue, but you need to have current github master versions not the last packaged versions. And you need make sure to recreate tables.

TiagoCavalcante commented 1 year ago

And you need make sure to recreate tables.

I forgot to do this part, thanks

rocky commented 1 year ago

The path in:

/usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/data/op-tables.json

suggests that you are using an installed version. That could be a problem, if the code isn't the same as what is in git master.

TiagoCavalcante commented 1 year ago

suggests that you are using an installed version. That could be a problem, if the code isn't the same as what is in git master.

I create a new container and installed everything with git clone + make install

TiagoCavalcante commented 1 year ago

(posting here in case I forget)

No errors are shown in the console, the primitive function is been called normally, but the axes aren't drawn, so I believe this is a problem in the translation layer. I'll look at it again tomorrow.