We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e4218 commit 848d283Copy full SHA for 848d283
src/nipanel/_streamlit_panel_initializer.py
@@ -34,6 +34,8 @@ def create_streamlit_panel(streamlit_script_path: Path, panel_id: str = "") -> S
34
raise RuntimeError(
35
"nipanel.create_panel() should not be called from a Streamlit script. Call nipanel.get_panel_accessor() instead."
36
)
37
+ if not isinstance(streamlit_script_path, Path):
38
+ raise TypeError("The provided script path must be a pathlib.Path instance.")
39
40
if streamlit_script_path.suffix != ".py":
41
raise ValueError(
0 commit comments