
¶
Documentation
Got a Python object you’d like to see in a browser?
Try this in a Python REPL or notebook:
import plotsrv as ps
ps.publish_view(
{"status": "ok", "rows": 123},
label="status",
launch_server=True,
)
Open http://127.0.0.1:8000. Keep the Python session running while you look around.
That’s the basic idea. Publish a DataFrame to get a table, a Matplotlib figure to see a plot, or a dictionary to inspect its contents. You can also show Markdown, images, HTML reports, and text.
Already have a file?¶
Open the same address. The view updates when the file changes. You can watch a directory too.
Put it in a job¶
Give a function a view, run your job normally, and inspect the result while it runs. The server can stay up between runs, keep previous versions, and show when an expected update is late.
plotsrv is an open-source project, developed primarily by one developer. It is for looking at useful outputs without building a dashboard around them.

