Jupyter Notebook for the beginner

162 views
Skip to first unread message

etikh...@gmail.com

unread,
Nov 10, 2016, 12:56:05 PM11/10/16
to Project Jupyter
My intention is to implement a web application with Jupyter Notebook, which will start by clicking a link on some page.
To start with this I need clarifications from the experts:

- is it possible to run the code in Jupyter Notebook immediately after connection. Say, when the user clicks a link, then Jupyter Notebook is opened in new tab and immediately shows the result.

- is it possible to put matplotlib drawing (which shows the results) at the top of the notebook? Thus, after immediate execution the users will see the top part of the screen with the results and they should not care about the rest of the screen with Python code.

- is it possible to make Python code invisible for users and leave only drawing (after releasing the notebook into production for the users)?

- is it possible to create GUI for Jupyter Notebook (buttons, maybe sliders, readback fields)? What can be used for this?

Thanks,
Evgeniy

Syaza Shahmir

unread,
Nov 18, 2016, 1:33:06 AM11/18/16
to Project Jupyter
 
I have the same questions. Is there anyone would be able to enlighten us on this topic? Thanks! 

Matthias Bussonnier

unread,
Nov 18, 2016, 11:41:16 AM11/18/16
to jup...@googlegroups.com
Hi All,

> - is it possible to run the code in Jupyter Notebook immediately after connection. Say, when the user clicks a link, then Jupyter Notebook is opened in new tab and immediately shows the result.

Not by default, likely with an extension on the javascript side, but
you will have to write this extension.
If the code depend on the notebook itself then this is a security risk
so the Jupyter/IPython team will not recommend it.

If you have full control of the server that might be doable. There is
still a bit of unknown: When you open a notebook is the kernel already
running, and do you want to re-run this code ?

> - is it possible to put matplotlib drawing (which shows the results) at the top of the notebook? Thus, after immediate execution the users will see the top part of the screen with the results and they should not care about the rest of the screen with Python code.

Roughly same response. Yes, with a custom extension.

> - is it possible to make Python code invisible for users and leave only drawing (after releasing the notebook into production for the users)?

Same again.

> - is it possible to create GUI for Jupyter Notebook (buttons, maybe sliders, readback fields)? What can be used for this?

For Python, yes, among other:

https://github.com/ipython/ipywidgets


In the end you seem to not really want a notebook and are looking for
something like dashboards:
https://github.com/jupyter-incubator/dashboards

See the readme of this repository for some examples.
--
M

etikh...@gmail.com

unread,
Nov 22, 2016, 1:36:23 PM11/22/16
to Project Jupyter
Thanks Matthias, for your answers. I will look at dashboards. 

Yes, I control Apache web server and can set restrictions for web pages which start Jupyter Notebook.
I tried to set proxy in Apache httpd.conf, but Jupyter is working only partially: the tree is not shown, only blank screen.
Does anybody had such problem? 

Evgeniy

etikh...@gmail.com

unread,
Dec 13, 2016, 5:31:42 PM12/13/16
to Project Jupyter
I found answers to 3 questions (out of 4) with nbextensions.
Reply all
Reply to author
Forward
0 new messages