Skip to content

Display run/experiment URL when initializing a Run #268

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

Merged
merged 1 commit into from
Jun 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/neptune_scale/api/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ def __init__(
fork_step=fork_step,
)

if mode == "async":
self._print_run_info()

# enable stdout / stderr logging at the end of the constructor, when everything is ready
if self._console_log_capture is not None:
self._console_log_capture.start()
Expand All @@ -382,6 +385,12 @@ def _handle_sync_process_death(self) -> None:
if self._errors_queue is not None:
self._errors_queue.put(NeptuneSynchronizationStopped())

def _print_run_info(self) -> None:
try:
logger.info(f"View your run in the app:\n{self.get_run_url()}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.info(f"View your run in the app:\n{self.get_run_url()}")
logger.info(f"View your run in the app: {self.get_run_url()}")

except Exception as e:
logger.debug(f"Error while printing run info: {e}")

def _close(self, *, timeout: Optional[float] = None) -> None:
timer = Timer(timeout)

Expand Down
Loading