Skip to content

Commit

Permalink
feat(url): can request url on layout when server started as task
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Sep 20, 2024
1 parent 0ca3fbe commit f0584c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions trame_client/ui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ def ipywidget(self):

return HTML(value=self._jupyter_content())

@property
def url(self):
"""Return application url if started"""
if not self.server.running:
return "Server is not running"

return self.iframe_builder(self)["src"]

def _ipython_display_(self):
from IPython.display import display_html, display

Expand Down

0 comments on commit f0584c1

Please sign in to comment.