holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.77k stars 519 forks source link

Move the Code portion of the landing page outside #6692

Open ahuang11 opened 7 months ago

ahuang11 commented 7 months ago

Was reading: https://python.plainenglish.io/top-5-python-frontend-libraries-for-data-science-part-2-4d07a48d2fde

And they chose the example from build dashboard and concluded "it has a steeper learning curve, and it takes more time to grasp its core concepts" which is not even an apples to apples comparison.

I think we should make it clear to the user that the code is much more straightforward, exposing the code outside of the tabs:

image

from https://panel.holoviz.org/index.html

Or even a simpler example mirroring the gradio one:

import gradio as gr

def greet(name, intensity):
    return "Hello, " + name + "!" * int(intensity)

demo = gr.Interface(
    fn=greet,
    inputs=["text", "slider"],
    outputs=["text"],
)

demo.launch()
MarcSkovMadsen commented 7 months ago

I think they chose the Dashboard example because they believe Panel is the best for more complex dashboards and applications. So they did it on purpose. Not because they could not find a simpler example.

image

I agree though that the Full code should be available on front page.

philippjfr commented 7 months ago

Yes, I don't think showing a minimal example would have resulted in them picking that example for their comparison. The example on the homepage at this point is a little outdated in any case and it'd be nice to produce a polished video instead.

ahuang11 commented 7 months ago

Do you have a code snippet in mind to do a video demo of, preferably one that builds up to the full app? I'm happy to record if we agree on one.