-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Plots not shown in the notebook #15168
Comments
comment:1
What exactly are you doing to start the notebook? |
comment:2
Are you running the notebook as vbraun as well? I use two separate accounts in the same group and they do run on the same machine, so versions of sage for the notebook and worker are the same. |
comment:3
It also works if I use a different account, i.e. |
comment:4
OK, I am not completely out of my mind, it just takes more effort to trigger it: all was ok in my freshly started beta4, until I checked "Typeset", which prints a string for a plot. Unchecking it did not help - still prints a string. Unchecking AND restarting the worksheet lets plots show up again. This is actually not related to multi-user setup or anything with security, I think it is a blocker then, but probably should not be hard to fix for people in the know ;-) |
This comment has been minimized.
This comment has been minimized.
comment:6
Ok. I wonder if it is really #14358 that introduced this. I can confirm that this does not work in a server pool setup. I get the following in my console where I started the server:
This is the output after I run |
comment:7
More error after trying to plot many times. I am using the git version of sage; I will retry with a prerelease version to find out if this error is from the git version of sage.
|
comment:9
Replying to @ppurka:
Was #14358 a typo? It is a new ticket for an issue that existed for a while (but hopefully will be fixed as well, of course ;-)). Sorry for not mentioning clearly that here I have problems even with 2D-plots, like
and as discovered yesterday thanks to Volker - it is present even in a single user setup on http://localhost. |
comment:10
This has nothing to do with the sagenb code, the
|
Author: Volker Braun |
comment:13
A couple of comments regarding the patch
|
comment:14
2., 3.: I've removed the default, its not a method thats intended to be called directly by the user so we might just as well require library code to be explicit.
|
Attachment: trac_15168_typeset_displayhook.patch.gz Updated patch |
comment:15
Works for me, thanks Volker! (I'll leave nitpicking for ppurka ;-)) |
comment:16
Sorry this patch works on normal notebook setup, but plots still don't work for me for server pool setup. This is the output I get on evaluating
|
comment:17
The
Though some argument checking would have been nice... |
Reviewer: Andrey Novoseltsev, Punarbasu Purkayastha |
comment:18
Oops. So sorry. It does work. I had to quote it because of the shell and apparently it is passed in quoted to the python process that actually launches the notebook. I had tested it on |
This comment has been minimized.
This comment has been minimized.
Merged: sage-5.12.rc0 |
I observe this bahaviour in Sage-5.12.beta4: after checking "Typeset" things that generate a plot show its text representation only. Adding
.show()
in the end does show the plot, but it is definitely annoying and unclear for new users, so would be nice if it did not hit 5.12.This may be related to #14469 and corresponding upgrade to sagenb-0.10.7.2 in #15016.
On the same machine with the same settings running 5.11 + sagenb-0.10.7.1 works fine.
Apply to devel/sage: attachment: trac_15168_typeset_displayhook.patch
Component: notebook
Keywords: plot
Author: Volker Braun
Reviewer: Andrey Novoseltsev, Punarbasu Purkayastha
Merged: sage-5.12.rc0
Issue created by migration from https://trac.sagemath.org/ticket/15168
The text was updated successfully, but these errors were encountered: