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

SVG output not included in notebook #3038

Closed
gkvoelkl opened this issue Nov 11, 2017 · 3 comments
Closed

SVG output not included in notebook #3038

gkvoelkl opened this issue Nov 11, 2017 · 3 comments

Comments

@gkvoelkl
Copy link

I create SVG output in a cell. It works correctly.
If I reopen the notebook on another day, there is only the text

<IPython.core.display.SVG object>

After evaluating the cell again, I can see the SVG graphic.

Is it a bug or did I something wrong?

Best regards

Gerhard

@takluyver
Copy link
Member

It sounds like your notebook is not trusted for some reason. Untrusted notebooks can't display output like SVG or HTML which may be able to run Javascript code.

There's more detail here:
http://jupyter-notebook.readthedocs.io/en/latest/security.html#Security-in-notebook-documents

@gkvoelkl
Copy link
Author

That works. 👍

@callegar
Copy link

The security.html document does not actually mention svg. To the best of my understanding, browsers should anyway protect themselves from code that could be embeded in svg images: SVG documents added to the page as images will have their JavaScript ignored. Not having a good vector-image format enabled is actually a big loss. Unless I am missing something, could this be reconsidered? and if I am missing something, may I suggest that reasons for excluding SVG are explicitly mentioned in the security.html document?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants