Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment out template output in best practices docs #7288

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/how_to/best_practices/dev_experience.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Instead of inheriting from `param.Parameterized`, using `pn.viewable.Viewer` all

For example, it's possible to use `ExampleApp().servable()` instead of `ExampleApp().view().servable()`.

```{pyodide}
```python
class ExampleApp(pn.viewable.Viewer):

...
Expand All @@ -65,14 +65,14 @@ class ExampleApp(pn.viewable.Viewer):
sidebar=[...],
)

ExampleApp().servable(); # semi-colon to suppress output in notebook
ExampleApp().servable();
```

### Okay

This method works, but should be reserved for cases where there's no Panel output.

```{pyodide}
```python
class ExampleApp(param.Parameterized):

...
Expand All @@ -83,7 +83,7 @@ class ExampleApp(param.Parameterized):
sidebar=[...],
)

ExampleApp().view().servable(); # semi-colon to suppress output in notebook
ExampleApp().view().servable();
```

## Build widgets from parameters
Expand Down
Loading