Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
lqc committed Apr 25, 2024
1 parent 3bc2ad9 commit 2099a3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mage_ai/server/utils/frontend_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def infer_notebook_type():
return None


def display_inline_iframe(host='localhost', port=SERVER_PORT, notebook_type=None, config={}):
def display_inline_iframe(host='localhost', port=SERVER_PORT, notebook_type=None, config=None):
config = dict(config) if config is not None else {}
path_to_server = f'http://{host}:{port}'

def __print_url():
Expand Down Expand Up @@ -70,7 +71,8 @@ def __print_url():
display(IFrame(path_to_server, width='95%', height=1000))


def update_frontend_urls(host=None, port=None, notebook_type=None, config={}):
def update_frontend_urls(host=None, port=None, notebook_type=None, config=None):
config = dict(config) if config is not None else {}
if notebook_type == NotebookType.DATABRICKS:
required_args = [
'cluster_id',
Expand Down

0 comments on commit 2099a3d

Please sign in to comment.