Jupyterlab-dash extension

I installed the jupyterlab-dash extension just like the installation said : https://github.com/plotly/jupyterlab-dash

When executing the example code I get this error:

Traceback (most recent call last):

  File "/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py", line 2910, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-5e7eb803b787>", line 1, in <module>
    import jupyterlab_dash

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab_dash/__init__.py", line 86
    'requests_pathname_prefix': f'{path}proxy/{self.port}/'})
SyntaxError: invalid syntax 

Any clues? I start it on a remote server. Is this the problem?

best regards!

that syntax error is being caused by an f-string. You need python >= 3.6 for f-strings, and you’re using python 3.5

Hi @Varlor, @mr_tambourine_man is right. Looks like an f-string was accidentally added which requires Python 3.6+. I just opened https://github.com/plotly/jupyterlab-dash/issues/26.

Is there any outlook when this will be ‘fixed’ ? :slight_smile:

Sorry, about the delay in merging/releasing this fix. Dash 1.0 just came out and JupyterLab 1.0 will be out in the next few days, so we’ll try to do another release soon after.