Skip to content

Commit b06d638

Browse files
Mike ProsserMike Prosser
authored andcommitted
add debugpy, and initialize_panel()
1 parent 44d18cc commit b06d638

File tree

6 files changed

+147
-81
lines changed

6 files changed

+147
-81
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,6 @@ cython_debug/
172172

173173
# PyPI configuration file
174174
.pypirc
175+
176+
# VS Code settings
177+
.vscode/launch.json

examples/sample/sample_panel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import nipanel
66

7-
panel = nipanel.StreamlitPanelValueAccessor(panel_id="sample_panel")
7+
panel = nipanel.initialize_panel()
88

99
st.title("Sample Panel")
1010

@@ -17,6 +17,9 @@
1717
st.write("Boolean")
1818
st.write("List")
1919

20+
if st.button("Rerun app"):
21+
st.rerun()
22+
2023
with col2:
2124
st.write(panel.get_value("sample_string"))
2225
st.write(panel.get_value("sample_int"))

0 commit comments

Comments
 (0)