Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ start docs\_build\index.html
3. Open http://localhost:42001/panel-service/panels/hello_panel/ in your browser
4. If there is an error about missing imports (especially nipanel), execute this
command (from the nipanel-python directory) to install the dependencies into the venv:
`%localappdata%\Temp\python_panel_service_venv\Scripts\python.exe -m pip install .\[examples,dev]`,
`%localappdata%\Temp\python_panel_service_venv\Scripts\python.exe -m pip install . streamlit-echarts>=0.4.0`,
then restart the PythonPanelService and re-run hello.py.

You can see all running panels (and stop them) at: http://localhost:42001/panel-service/
Expand Down
6 changes: 5 additions & 1 deletion examples/hello/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
panel_script_path = Path(__file__).with_name("hello_panel.py")
panel = nipanel.create_panel(panel_script_path)

panel.set_value("hello_string", "Hello, World!")
index = 0
while True:
panel.set_value("hello_string", f"Hello, World! {index}")
index += 1
print(f"...{index}")

print(f"Panel URL: {panel.panel_url}")