3-manifolds / Sage_macOS

SageMath as a macOS application bundle.
152 stars 15 forks source link

slider not shown in @interact #42

Closed azerad closed 2 years ago

azerad commented 2 years ago

in a jupyter notebook with sagemath9.6 just installed on a mac book macOS 12.1 no slider shown and no error message in the following piece of code

@interact def exemple(x=2): return 1 +x ########

NathanDunfield commented 2 years ago

I can reproduce this with the Chrome browser on macOS 11.6; in contrast, @interact works with SageMath 9.5 on the same system. Possibly this is a regression related to this discussion.

NathanDunfield commented 2 years ago

Yes, it is a regression. The following terminal commands fixed it on my system:

cd /var/tmp/sage-9.6-current/venv/share/jupyter/nbextensions/
mkdir -p  widgets/notebook
cd widgets/notebook/
ln -s ../../jupyter-js-widgets js

Marc (@culler) can you confirm that this is the correct approach?

azerad commented 2 years ago

Thanks  for the suggested fix which works for me (macOS 12.1 sagemath 9.6)

:-)

P

Le 13/06/2022 à 15:28, Nathan Dunfield a écrit :

Yes, it is a regression. The following terminal commands fixed it on my system:

|cd /var/tmp/sage-9.6-current/venv/share/jupyter/nbextensions/ mkdir -p widgets/notebook cd widgets/notebook/ ln -s ../../jupyter-js-widgets js |

Marc @.*** https://github.com/culler) can you confirm that this is the correct approach?

— Reply to this email directly, view it on GitHub https://github.com/3-manifolds/Sage_macOS/issues/42#issuecomment-1153915110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIC3UMCNVHDMTVVKBHRYTTVO4ZOHANCNFSM5YTTGBNQ. You are receiving this because you authored the thread.Message ID: @.***>

NathanDunfield commented 2 years ago

Reopened to remind us to fix this in the release.

azerad commented 2 years ago

ok sorry for closing it unduly.

NathanDunfield commented 2 years ago

No worries, many thanks for reporting this!

culler commented 2 years ago

I believe that this is now fixed in v1.4.1. That is a prerelase at the moment but will be changed to a release in a few days if everything continues to look OK. In any case, I think we can close this issue now.

NathanDunfield commented 2 years ago

Interact works for me in v1.4.1 without any issues.