Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Startup Notebook in Dashboard view? #279

Open
rskabelund opened this issue Oct 19, 2016 · 6 comments
Open

Startup Notebook in Dashboard view? #279

rskabelund opened this issue Oct 19, 2016 · 6 comments

Comments

@rskabelund
Copy link

Hello,
Is there a way to make the notebook startup in dashboard view? Or perhaps, default to dashboard view during a restart?

Right now, a user needs to restart and run all, the switch to dashboard view to see the outputs, widgets, input fields etc... It would be nice if the user could just open a notebook and have that view readlily there for them without the initial extra clicks...

Warm Regards,
-Randy

@jhpedemonte
Copy link
Collaborator

The 3rd dashboard icon in the toolbar is for the Dashboard Preview. This shows the dashboard with minimal UI. Notice that this also changes the URL -- loading to that URL directly will automatically switch to this preview view. However, the user will still have to select Cell > Run All, at least.

You could also do something along these lines, with the above solution. But this should be considered a hack.

The best solution is to use the Dashboards Server, which is specifically built for this purpose. You would deploy your notebook using the Dashboards extension (this project) and users would run it in the Dashboards Server: clean UI, cells are automatically run and comes with enhanced security.

@parente
Copy link
Member

parente commented Oct 19, 2016

A bit more background: Running a notebook automatically on open breaks the security model which prevents malicious notebook code from running without a chance of user review first.

@rskabelund
Copy link
Author

rskabelund commented Oct 19, 2016

Thank you for the information and the security model reminder. I am now considering a custom widget button that would somehow execute restart & run all and then switch to dashboard preview. Does this seem feasible? Or even perhaps customize the dashboard toolbar to include such a button? At that point, it is just a single click for the user.

EDIT: we do use the dashboard server, however, I want to keep the ability to directly change the notebook on demand when needed without having to re-deploy it to the dashboard server.

@parente
Copy link
Member

parente commented Nov 12, 2016

Sorry for the delayed response.

Does this seem feasible? Or even perhaps customize the dashboard toolbar to include such a button? At that point, it is just a single click for the user.

Adding a button, menu item, or command palette option to "Run All as Dashboard" or some such should be feasible. Making it a drop down option of the Dashboard Preview button might be another way to do it without a wholly new button on the toolbar.

If you take a pass at implementing it as an addition to to this extension, please feel free to submit a PR. We can iterate on how to get it in.

@ashveera
Copy link

Hi guys,

I there any update on this.

@parente
Copy link
Member

parente commented Nov 30, 2017

Anyone with an interest in this topic should check out https://github.com/oschuett/appmode.

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