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

Untrusted notebook user experience #1146

Closed
Phyks opened this issue Feb 25, 2016 · 7 comments
Closed

Untrusted notebook user experience #1146

Phyks opened this issue Feb 25, 2016 · 7 comments

Comments

@Phyks
Copy link

Phyks commented Feb 25, 2016

Hi,

I got some issues with %matplotlib notebook which was discarding my figures when reloading the notebook, and replacing them with <IPython.core.display.Javascript object>. I could not figure out why, and I discovered it was due to the fact that my notebook was not trusted.

Maybe it could be a good idea to add a big warning bar on top of the notebook if running in untrusted mode, stating something like "this notebook runs in untrusted mode, some features will be disabled.", and it could improve user experience a lot.

Thanks

@minrk minrk added this to the 5.0 milestone Feb 25, 2016
@Phyks
Copy link
Author

Phyks commented Mar 18, 2016

I am having a quick look at it and think I can make a PR to handle it, if it can be useful.

I am wondering what is the best implementation:

  • Either to check for the trusted status of the notebook, and display a banner on top of the page, as described initially in this issue.
  • Or handle it at the OutputArea level (
    if (!this.trusted && !OutputArea.safe_outputs[type]) {
    ) and append a banner in sanitized output areas.

What do you think?

@minrk
Copy link
Member

minrk commented Mar 21, 2016

If you would like to mock up an example of a better UI for untrusted output, that would be great! My first inclination would be the single global indicator, not per-output.

cc @ellisonbg @cameronoelsen

@juhasch
Copy link
Contributor

juhasch commented Mar 22, 2016

I added a trusted/not trusted indicator (checkmark or cross) for notebooks in the python-markdown extension:

Not saying it should be done like this, but it might give an idea how it could looke like.

@Phyks
Copy link
Author

Phyks commented Mar 30, 2016

👍 This looks like the perfect thing to do for me. @juhasch Maybe you want to handle a PR yourself? or want me to extract it from your extension?

@juhasch
Copy link
Contributor

juhasch commented Mar 31, 2016

You are welcome to strip out the indicator an make a PR for the notebook.

@Phyks
Copy link
Author

Phyks commented Apr 1, 2016

UI is far from perfect, but I started a PR at #1293.

I think we can discuss there of UI improvements. Thanks!

@gnestor
Copy link
Contributor

gnestor commented Aug 5, 2016

Merged #1658 (comment)

Thanks @Phyks for your contribution.

@gnestor gnestor closed this as completed Aug 5, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 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