Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipywidgets and 3D graphs not working in self-hosted (docker) version #3813

Closed
electron2302 opened this issue May 8, 2019 · 7 comments
Closed

Comments

@electron2302
Copy link

electron2302 commented May 8, 2019

Hello,

First of all, thanks a lot for this awesome project. <3
I am using it for a group assignments in my computer science course, and we all love it.
But I'm somehow not able to display ipywidgets and 3D graphs, for the graphs, there is a button that comes up with which says "Load Viewer...", but if you press it nothing happens, and the ipywidgets dont show up as well. (on cocalc.com they do, with the same code)

I found this error in the browser console:
https://cocalc.my.domain/83dba49d-83c7-47e0-800e-85b311918cfe/port/jupyter/static/@jupyter-widgets/base.js?v=20190507194142 -> 404 Not Found

And they dont work in the "Plain Jupyter Classic Server" either

has someone any ideas on how I can resolve that or what further information would you need to do so ?

I had hoped that it would work, since it was a very recently resolved by @williamstein in #1930 (comment)_

@williamstein
Copy link
Contributor

I had hoped that it would work, since it was a very recently resolved by @williamstein

Indeed -- I just finished implementing widgets only a week ago. The docker image needs to be updated to support widgets. @DrXyzzy is working on this -- what's the status? I also think there is a workaround involving installing the python ipywidgets code...

@DrXyzzy
Copy link
Contributor

DrXyzzy commented May 9, 2019

I pushed a new image to dockerhub a little while ago and am testing it now. There's a PR for this, but I need to make a small change to it. Should be done in a little while.

@DrXyzzy
Copy link
Contributor

DrXyzzy commented May 9, 2019

@electron2302, thanks for getting in touch!

The latest cocalc image at docker hub has working ipywidgets. You should pick up the fix if you upgrade your cocalc-docker install as explained here: https://github.com/sagemathinc/cocalc-docker#upgrade

I'm updating cocalc-no-agpl, too, and will push that shortly.

BTW, I think this issue is the same as sagemathinc/cocalc-docker#51.

@DrXyzzy DrXyzzy closed this as completed May 9, 2019
@DrXyzzy
Copy link
Contributor

DrXyzzy commented May 9, 2019

I just now pushed another revision of the CoCalc docker image around Thu May 9 04:45:40 UTC 2019.

The previous revision had ipywidgets working for Sagemath and Python 3 Ubuntu kernels, but not Python 2 Ubuntu kernel. Now fixed.

@electron2302
Copy link
Author

Since the last change to the docker image was on the same day, where @williamstein, sad it was done, i assumed it would have been in the docker image already, But now the ipywidgets work great indeed :)

But i still have the Problem that 3D graphs are not loading, not even in the "Plain Jupyter Classic Server" - any ideas on why they are not loading ?
One example would be

t = var('t')
parametric_plot((t, sin(t), cos(t)), (t, 0, 5*pi))

@DrXyzzy
Copy link
Contributor

DrXyzzy commented May 9, 2019

@electron2302, thank you for pointing out the additional problem with 3D plots. Please see the cocalc-docker repo on GitHub for follow-up. The 3D problem you're seeing is probably a variant of known issue sagemathinc/cocalc-docker#35. I'm looking into that issue this week.

@electron2302
Copy link
Author

Yes, that is the same issue, and the workaround also works fine, thanks for pointing to that @DrXyzzy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants