Skip to content

Commit 8f14ecc

Browse files
committed
Review comments.
1 parent efa88c1 commit 8f14ecc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Sample
22

3-
This is a nipanel example that displays an interactive Streamlit app and update values.
3+
This is a nipanel example that displays an interactive Streamlit app and updates its values.
44

55
### Feature
66

examples/sample/sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""This example demonstrates how to open/update a Streamlit application using nipanel package."""
22

3-
import os
3+
import pathlib
44

55
import nipanel
66

7-
script_path = os.path.dirname(os.path.abspath(__file__))
8-
panel_script_path = os.path.join(script_path, "sample_panel.py")
7+
script_path = pathlib.Path(__file__)
8+
panel_script_path = str(script_path.with_name("sample_panel.py"))
99

1010
panel = nipanel.StreamlitPanel(
1111
panel_id="sample_panel",

0 commit comments

Comments
 (0)