Skip to content

Commit

Permalink
fix(jupyter): use get_server in show
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Nov 3, 2023
1 parent a29fffa commit d758ead
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trame/app/jupyter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import asyncio
from trame.app import get_server
from IPython import display

from . import get_server

__all__ = [
"show",
"display_iframe",
Expand All @@ -22,8 +23,7 @@ def show(_server, ui=None, **kwargs):
:param **kwargs: any keyword arguments are pass to the Jupyter IFrame.
Additionally `protocol=` and `host=` can be use to override the iframe src url.
"""
if isinstance(_server, str):
_server = get_server(_server)
_server = get_server(_server)

def on_ready(**_):
params = f"?ui={ui}" if ui else ""
Expand Down

0 comments on commit d758ead

Please sign in to comment.