Live data from Hacker News

Voilà turns Jupyter notebooks to standalone web applications

blog.jupyter.org

41–50 of 52 posts

Re: Voilà turns Jupyter notebooks to standalone web applications

#41
post #13

For years I thought Jupyter Notebook was hardware, a specific laptop made for scientists. Am I alone thinking it's a confusing name?

Yes, it's very rare to have the term notebook mixed up in this case. Unless you've only heard of the term "Jupyter Notebook" and have zero context. By the same logic Python can get confused with snakes.

Re: Voilà turns Jupyter notebooks to standalone web applications

#42
post #29

side 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...

They haven't released 1.0 yet though which is probably why it hasn't been advertised more openly. Hope it happens soon so we don't have to install pre-releases to run new versions of Altair anymore (edit: Altair + Jupyter Lab is an excellent combination though so it's worth the extra steps).

Re: Voilà turns Jupyter notebooks to standalone web applications

#43

Earlier quoted context omitted.

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.

your blog post still displays the code . Not sure if that can be turned off as well. Please consider the request for a Docker based output build in addition to whatever you do for jupyterhub

From the blog post:

> with --strip_sources=False, input cells will be included in the resulting web application (as read-only pygment snippets).

So the sources are presumably not there by default.

Re: Voilà turns Jupyter notebooks to standalone web applications

#44
post #30
post #29

side 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...

...a lot of us are practically addicted to Jupyter Notebook Extensions [1] features and these aren't compatibly with Jupyter Lab and Jupyter Lab didn't add equivalent builtin features. 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…

I'm not sure what you mean. Jupyter-lab has extensions, such as the toc?

Re: Voilà turns Jupyter notebooks to standalone web applications

#46
post #12

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…

You can check out: https://epiphany.pub/post?refId=d40c08258ef10f2fe9acff4ab738...

Re: Voilà turns Jupyter notebooks to standalone web applications

#47
post #44
post #30

Earlier quoted context omitted.

...a lot of us are practically addicted to Jupyter Notebook Extensions [1] features and these aren't compatibly with Jupyter Lab and Jupyter Lab didn't add equivalent builtin features. 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…

I'm not sure what you mean. Jupyter-lab has extensions, such as the toc?

Without knowing anything about what I'm saying, I think parents complaint is that Jupiter notebook extension don't work in labs, and that the labs extension system does not allow for as much customisation, leaving parent to stick to the notebook server.

Re: Voilà turns Jupyter notebooks to standalone web applications

#48
post #12

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…

There is indeed! I'll start with the one I founded: Anvil, which is an end-to-end Web dev system with Python (plus a drag-and-drop UI builder, and lots more good stuff): https://anvil.works Here's our version of how to turn a Jupyter notebook into a web app: https://anvil.works/blog/jupyter-notebook-to-web-app (tl;dr there's a library you can `pip install`. It makes a websocket connection to Anvil, and then your code…

The latest podcast from podcast.__init__ is an interview of Meredydd about anvil

https://www.pythonpodcast.com/anvil-web-application-developm...

Re: Voilà turns Jupyter notebooks to standalone web applications

#49
post #38

There's a somehow similar project called Panel: http://panel.pyviz.org/ However it's limited to Bokeh widgets whereas Voila is framework and language agnostic. As I understand it Panel allows to start Bokeh servers from notebooks.

I'd also like to know how Voilà compares to Panel. The recent Panel announcement stated that it was widget/graphing library agnostic and mentioned plotly and Altair explicitly. I have not used it myself though.

Last time I checked you could indeed plug different graphing libraries but Panel comes with its own widgets API which a set of wrappers around Bokeh widgets. So yes for Plotly and Altair but no ipywigets.

Re: Voilà turns Jupyter notebooks to standalone web applications

#50

There's a somehow similar project called Panel: http://panel.pyviz.org/ However it's limited to Bokeh widgets whereas Voila is framework and language agnostic. As I understand it Panel allows to start Bokeh servers from notebooks.

Panel can use a Bokeh server but does not require it; it is equally happy communicating over Bokeh Server's or Jupyter's communication channels. Panel doesn't currently support using ipywidgets, nor does Voila currently support Bokeh plots or widgets, but the maintainers of both Panel and Voila have recently worked out mechanisms for using Panel or Bokeh objects in ipywidgets or using ipywidgets in Panels, which should be ready soon. I'm not sure of the details of how one would use Voila with other languages, but Panel can already show anything that has an interface to Python, e.g. an R ggplot visualization.
Post reply on HN