Skip to content

Commit

Permalink
Handle case of missing init
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Mar 28, 2024
1 parent 2b12fbe commit 07647f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rerun_py/rerun_sdk/rerun/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ def as_html(
"""

application_id = get_application_id(recording)
if application_id is None:
raise ValueError(
"No application id found. You must call rerun.init before using the notebook APIs, or provide a recording."
)

if app_url is None:
app_url = bindings.get_app_url()

application_id = get_application_id(recording)

output_stream = RecordingStream(
bindings.new_recording(
application_id=application_id,
Expand Down

0 comments on commit 07647f0

Please sign in to comment.