An example would be this which I found: GitHub - JoelStansbury/widgetron: app bundler for ipython notebooks · GitHub
Which hasn’t been maintained, so there are a few issues.
Is this the only available method to convert an ipynb (that has widgets) to an executable dashboard type desktop app?
Usually I run my notebook with voila, and the notebook has widgets from ipywidgets.
I know that nteract has been active lately and the listing under the Project Structure lists " widgets/ # ipywidgets controls". I don’t know how much the dashboard style it supports though so it may still not be what you want. I do see though that it hopes to be able to support keeping code cells collapsed as part of an open feature issue, see here.
If things being isolated to the computation and input data being on your computer is sufficient, even if it is still in a browser and you are downloading the infrastructure from a sever, there is voici that is in development.
2 Likes
Thanks for the reply. I basically would like for the user to be able to install the dashboard as an exe file (like widgetron shows there) or a app file on mac, and a single window opens when you open the application which would show the voila dashboard with widgets in my case.
Id be open to using voici too, but im not sure if it matters in my case since its mostly matplotlib based with some interactive widgets.
I’m not sure I understand this nteract, but I will look into asking them on that issue
What is the issue against Voila that you have working already?
I don’t have any issues with either, and I have used voici as well. Mind you it would be slower in this particular case. But I was thinking in terms of distribution to users who don’t have any knowledge of voila or installing that whole ecosystem. Having an executable desktop app is definitely my end goal here
I’ve made a similar thing with my Jupyter notebooks. For the notebook render, I used voila. And then this was hosted inside an electron browser, purpose-built to drive voila. All of this can be bundled up fairly easily with NSIS as your installed) or there’s even a way to shoehorn it into the electron squirrel packager. You could even bundle the environment to run voila and your notebook using pyinstaller for the subpackaging.
For the system I built it for, it was running on windows.
I’ve tried voici, like others have mentioned, but it only works properly on a Linux system.
1 Like