packages = [
"bokeh==3.2.2",
"pandas",
"panel==1.3.8",
]
Hello World!
This is a test To see how my html code is.
This space below will become blank as a few seconds is taken to render the dataframe with Panel's `pane.DataFrame()` method. Be patient ...
import pandas as pd
import panel as pn
from panel.io.pyodide import show
from pyodide.http import open_url
#url = 'https://raw.githubusercontent.com/fomightez/pyscript_test/main/penguins.csv' #<--- works, but should probably use more popular source, if possible
url = 'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-07-28/penguins.csv'
df = pd.read_csv(open_url(url))
#display(df.head())
#display(df.to_html())
df_pane = pn.pane.DataFrame(df).servable(target='pane')
#show(df_pane, 'pane')
#df.head().style.format(precision=2)