Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor init in Python SDK #3978

Open
emilk opened this issue Oct 24, 2023 · 0 comments
Open

Refactor init in Python SDK #3978

emilk opened this issue Oct 24, 2023 · 0 comments
Labels
enhancement New feature or request 🐍 Python API Python logging API

Comments

@emilk
Copy link
Member

emilk commented Oct 24, 2023

We want to make the python API look more similar to the Rust and C++ APIs.

Exactly how needs a bit of design, but something along the lines of:

rec = rr.Recording("rerun_example_app", stream_to_disk="foo.rrd")
rec.set_time(…)
rec.log(…)

# Helper to have a standard way to access a recording:
rr.set_global_recording(rec)
if rec := rr.get_global_recording():
    rec.log(…)

No init. No other global state or per-thread state other than the set/get_global_recording helpers.

Questions: how do we handle multiprocessing parallelism?

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🐍 Python API Python logging API
Projects
None yet
Development

No branches or pull requests

1 participant