Skip to content

plotsrv

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.

The published status dictionary in plotsrv, showing status ok and 123 rows.

The published status dictionary in plotsrv, showing status ok and 123 rows.

A dictionary, shown as a tree. Click the image to enlarge it.

Install and try it →

Already have a file?

plotsrv watch ./logs/job.log --tail

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.

Use plotsrv in a project →

plotsrv is an open-source project, developed primarily by one developer. It is for looking at useful outputs without building a dashboard around them.

Try the live demo · Browse an ETL example · Contribute