Enable Binder #2198
Enable Binder #2198
Conversation
|
Status: Things are starting to work. I'm finding bugs in the Reference Examples. I have to update the gallery notebooks in order to be able to serve them as apps. I would like to configure VS Code to enable showcasing how powerful the combination of Panel and VS Code is.... Also on Binder and in a Jupyter Hub. panel-binder.mp4So I would really, really like Panel to work in VS Code. But it requires fixing bokeh/jupyter_bokeh#131 |
|
Hi @philippjfr As I see it 1) Binder is working 2) It now comes with a nice setup like In principle this could be all for this PR except adding a link to binder in different places. For example the README. BUT all the notebooks need to be walked through and prettified in order to be useable as apps. This could be a lot of work and a lot of minor changes. And to be honest. Even without binder a test and update of the notebooks could be in place (c.f. all the bugs posted, I have just scratched the surface I believe). Here are my questions.
|
No, some of them sure, but definitely not all. The focus should be the feature being demonstrated not making all the examples look like.
Definitely not, in fact I'd argue there's no reason to make these available as apps at all.
I'll make sure to configure this once you're done here. The link will go in the interactivity warning that floats on the right side. |
Just make a single PR for any coordinated changes like this. |
| "pn.extension()\n", | ||
| "pn.config.sizing_mode=\"stretch_width\"" |
philippjfr
Apr 26, 2021
Member
It's a matter of preference but config options can be passed to the extension:
Suggested change
"pn.extension()\n",
"pn.config.sizing_mode=\"stretch_width\""
"pn.extension(sizing_mode='stretch_width')"
It's a matter of preference but config options can be passed to the extension:
| "pn.extension()\n", | |
| "pn.config.sizing_mode=\"stretch_width\"" | |
| "pn.extension(sizing_mode='stretch_width')" |
MarcSkovMadsen
Apr 26, 2021
Author
Collaborator
Thanks. I like that preference :-) I will update.
Thanks. I like that preference :-) I will update.
MarcSkovMadsen
May 1, 2021
Author
Collaborator
@philippjfr . I have updated all Panel notebooks and test examples to use this terminology. It's nice and simple.
@philippjfr . I have updated all Panel notebooks and test examples to use this terminology. It's nice and simple.
|
@jbednar . Some things the "default" template would have to know is a lot of configuration.
etc. I don't know how that could be done automatic and removed from the notebooks. I would actually argue that 1) In practice it is not distracting 2) It's actually showing what the workflow to get to "production" with your dashboard or app is. For many use cases eventually you would need to wrap it into a nice template. 3) It's really valuable as now we have a to share the results of the examples as something that really looks nice and communicates. So I don't see it as a pain. But a gain :-) |
Here I'd suggest following what existing less-configurable tools like shiny and streamlit do, to give users a gentle introduction to making a Panel app that is easy to get into and may be all they every need to do. E.g. |
Really not excited about this, I don't want yet another API. I'd be okay with something like: pn.extension(template='material')
a_component.servable(area='header')
another_component.servable(area='main')
yet_another_component.servable(area='sidebar') |
|
That sounds pretty clean to me! |
|
Status:
The only things outstanding are
More can always be done. But that should be done in other PRs I believe. |
|
Binder is now working as I originally intended it to and more :-).
Some things are not in scope for me
Some things are not working and I am not capable of getting it working
Working Videobinder-gallery-works.mp4Not WorkingWatch this video on Youtube https://www.youtube.com/watch?v=gI3qQRVdIIE @philippjfr Feel free to review and start creating value from this :-) I don't plan to do more on this before getting a review and feedback. Thanks. |
Address #1500, #1369 (comment) and #2218.
This will enable opening the Panel examples on Binder. Whether it will also be possible to add a binder link to all examples is unknown and "nice to have" for this PR.
For now you can access binder via https://mybinder.org/v2/gh/holoviz/panel/binder?urlpath=lab/tree/examples
I would like a suggestion from @philippjfr or @jbednar which link we should provide when released. I see the following options
binderbranch.binderbranchmasterbranch.