From 0ef296e688d455492f955e32183c6263735434ef Mon Sep 17 00:00:00 2001 From: Jerry Wu Date: Mon, 8 Apr 2024 15:09:53 +0800 Subject: [PATCH 1/2] Update build_app.md Update the url for the UCI ML dataset --- doc/getting_started/build_app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/getting_started/build_app.md b/doc/getting_started/build_app.md index ef798e3845..91cf34b6d9 100644 --- a/doc/getting_started/build_app.md +++ b/doc/getting_started/build_app.md @@ -37,7 +37,7 @@ Next, we'll import the Panel JavaScript dependencies using `pn.extension(...)`. pn.extension(design="material", sizing_mode="stretch_width") ``` -Now, let's load the [UCI ML dataset](http://archive.ics.uci.edu/ml/datasets/Occupancy+Detection+) that measured the environment in a meeting room. We'll speed up our application by caching (`@pn.cache`) the data across users: +Now, let's load the [UCI ML dataset](http://archive.ics.uci.edu/dataset/357/occupancy+detection) that measured the environment in a meeting room. We'll speed up our application by caching (`@pn.cache`) the data across users: ```{pyodide} @pn.cache From 46a4fdc75d41a08fc1feb0de4c6dbbc6785a380f Mon Sep 17 00:00:00 2001 From: Jerry Wu Date: Mon, 8 Apr 2024 15:10:24 +0800 Subject: [PATCH 2/2] Update FAQ.rst --- doc/FAQ.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/FAQ.rst b/doc/FAQ.rst index 2cc1e1b712..aa7a37aec1 100644 --- a/doc/FAQ.rst +++ b/doc/FAQ.rst @@ -43,7 +43,7 @@ Conversely, what Panel adds on top of Bokeh is full bidirectional communication **Q: Why is my object being shown using the wrong type of pane?** -**A:** A global set of precedence values is used to ensure that the richest representation of a given object is chosen when you pass it to a Row or Column. For instance, if ``obj`` is "# Some text", it be displayed as a ``pn.Str``, ``pn.HTML``, or ``pn.Markdown``, all of which can render a Python string like that. By default, something like ``pn.Row(obj)`` will select a Markdown pane for the obj, because Markdown has a higher precedence than the other options. If you want to override the default pane type selected, you can specify the precise Pane type you wish, as in ``pn.Row(pane.Str("# Some text"))``, which also allows you to pass in options like ``pn.Row(pane.Str("# Some text", height=300))``. If the default Pane type is fine but you still want to be able to pass specific options like width or height in this way, you can invoke the ``pn.panel`` function to create a defauot pane with the supplied arguments, as in ``pn.Row(pn.panel(obj, height=300))``. +**A:** A global set of precedence values is used to ensure that the richest representation of a given object is chosen when you pass it to a Row or Column. For instance, if ``obj`` is "# Some text", it be displayed as a ``pn.Str``, ``pn.HTML``, or ``pn.Markdown``, all of which can render a Python string like that. By default, something like ``pn.Row(obj)`` will select a Markdown pane for the obj, because Markdown has a higher precedence than the other options. If you want to override the default pane type selected, you can specify the precise Pane type you wish, as in ``pn.Row(pane.Str("# Some text"))``, which also allows you to pass in options like ``pn.Row(pane.Str("# Some text", height=300))``. If the default Pane type is fine but you still want to be able to pass specific options like width or height in this way, you can invoke the ``pn.panel`` function to create a default pane with the supplied arguments, as in ``pn.Row(pn.panel(obj, height=300))``. **Q: For Matplotlib plots in a notebook, why do I get no plot, two plots, or plots that fail to update?**