Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 7b74d1c

Browse files
committed
Handle common Dash(__name__, ...) pattern
1 parent 7b56923 commit 7b74d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_dash/jupyter_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def infer_jupyter_config(cls):
5050
"""
5151
_request_jupyter_config()
5252

53-
def __init__(self, server_url=None, **kwargs):
53+
def __init__(self, name=None, server_url=None, **kwargs):
5454
""""""
5555
# See if jupyter_server_proxy is installed
5656
try:
@@ -72,7 +72,7 @@ def __init__(self, server_url=None, **kwargs):
7272
self._input_pathname_prefix = kwargs.get('requests_pathname_prefix', None)
7373

7474
# Call superclass constructor
75-
super(JupyterDash, self).__init__(**kwargs)
75+
super(JupyterDash, self).__init__(name=name, **kwargs)
7676

7777
# Infer server_url
7878
if server_url is None:

0 commit comments

Comments
 (0)