diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b45770..9a27a4d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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/ diff --git a/examples/hello/hello.py b/examples/hello/hello.py index ad2d97a..a8b8cd6 100644 --- a/examples/hello/hello.py +++ b/examples/hello/hello.py @@ -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}")