Is there any work on bringing Python into the browser like with JavaScript? At the beginning of the year, I was looking at the best way of making an interactive textbook either with Python (requiring a backend it seemed), or with JavaScript via D3. You can still use Jupyter Notebooks with JS; there's a library called BeakerX by Two Sigma that does this. I went the D3 route but it was hard to stay motivated when most…
Voilà turns Jupyter notebooks to standalone web applications
21–30 of 52 posts
Re: Voilà turns Jupyter notebooks to standalone web applications
#22For years I thought Jupyter Notebook was hardware, a specific laptop made for scientists. Am I alone thinking it's a confusing name?
Re: Voilà turns Jupyter notebooks to standalone web applications
#23Earlier quoted context omitted.
What do you mean? Jupyter notebooks are usually pure Python apart from (sometimes) interactive widgets, which have Javascript behind them since it's in a browser. I don't think this is much use without widgets, so maybe you mean something else?
I mean why can't I write python outside of jupyter and generate these dashboards? Or can I?
Re: Voilà turns Jupyter notebooks to standalone web applications
#24Re: Voilà turns Jupyter notebooks to standalone web applications
#25Earlier quoted context omitted.
What do you mean? Jupyter notebooks are usually pure Python apart from (sometimes) interactive widgets, which have Javascript behind them since it's in a browser. I don't think this is much use without widgets, so maybe you mean something else?
I mean why can't I write python outside of jupyter and generate these dashboards? Or can I?
Jupyter is convenient though :)
Re: Voilà turns Jupyter notebooks to standalone web applications
#26Earlier quoted context omitted.
I've been using the Jupyter AppMode plugin for a few years, it has been very useful for internal tools. Voilà looks similar, with more sheen, it's going to enable true rapid SPA development.
Voila author here: a major difference with AppMode is that AppMode is merely hiding the notebook interface, but still allows for arbitrary code execution. Voila is meant for producing secure web apps.
in fact, now that i think of it - can you generate an output folder with a Dockerfile ? so a mere docker build will produce a running docker compatible "build" folder ?
Also, can you have a mode where you hide the source code ? i just get the output data ? for world viewable dashboards.
Re: Voilà turns Jupyter notebooks to standalone web applications
#27Earlier quoted context omitted.
Voila author here: a major difference with AppMode is that AppMode is merely hiding the notebook interface, but still allows for arbitrary code execution. Voila is meant for producing secure web apps.
hi - its very interesting that you talk about security. what's the deployment story here ? in fact, now that i think of it - can you generate an output folder with a Dockerfile ? so a mere docker build will produce a running docker compatible "build" folder ? Also, can you have a mode where you hide the source code ? i just get the output data ? for world viewable dashboards.
Re: Voilà turns Jupyter notebooks to standalone web applications
#28Earlier quoted context omitted.
hi - its very interesting that you talk about security. what's the deployment story here ? in fact, now that i think of it - can you generate an output folder with a Dockerfile ? so a mere docker build will produce a running docker compatible "build" folder ? Also, can you have a mode where you hide the source code ? i just get the output data ? for world viewable dashboards.
There are some details about this in the blog post. - no execution request is sent by the front-end. - code is stripped out unless explicitely stated otherwise. For deployment, we are working on several scenarios around JupyterHub.
Please consider the request for a Docker based output build in addition to whatever you do for jupyterhub
Re: Voilà turns Jupyter notebooks to standalone web applications
#29https://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f0...
Re: Voilà turns Jupyter notebooks to standalone web applications
#30side note: I hope everyone is aware of Jupyter Lab , the successor of Jupyter Notebooks -- it's been basically version 1.0 for over a year: https://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f0...
Once you get used to little things like (a) auto-TOC/outline of current doc in a sidebar (with highlight for current running cells and other goodies), (b) auto scroll to end of output, (c) browser notifications for end of long running calculations (so you can be alerted of stuff being done while browsing in other tabs) etc. etc. you really can't live without them!
It's this little things that matter 100x more than freely rearrangeable tab-grids and detachable outputs and terminals... these are cool but it's the other small details that make a bigger difference in productivity!
(As someone who also has some frontend web experience I was planning to maybe try and code these and contribute, but I never find the time, and last time I looked I couldn't find a good entry point to start learning about jupyter lab's frontend code...)
[1] https://github.com/ipython-contrib/jupyter_contrib_nbextensi...