title: vs code, holoviews, hvplot, pyviz [SyntaxError: Unexpected token '?' at runCodeHere (... ] [Visual Studio Code]
body: <p>Very frustrated*. Code works on jupyter lab, but not in Visual Studio Code.</p>
  <p>I’ve created clean new environments, installed, removed, reinstalled [hours gone-by]. i’ve installed as per instructions (in clean environments) [eg., conda install -c pyviz/label/dev holoviews]</p>
  <p>here the versions i’m using</p>
  <pre><code>hvplot.version = ‘0.6.0’
  holoviews.version =‘1.13.3’
  pd.version = ‘1.0.5’
  </code></pre>
  <p>i have the following simple code… from one of your tutorials</p>
  <p>'''</p>
  <pre><code>import hvplot.pandas  # noqa
  
  from bokeh.sampledata.iris import flowers
  import hvplot
  
  #%%
  
  flowers.hvplot.plot(x=‘sepal_width’, y=‘sepal_length’, width=600, groupby=‘species’, kind=‘scatter’ )
  </code></pre>
  <p>'''</p>
  <p><strong>this is what i managed to capture in a debugger</strong></p>
  <pre><code>SyntaxError: Unexpected token ‘?’
      at runCodeHere (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:11588)
      at t.value (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:12015)
      at Ta (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2379474)
      at Pa (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2382396)
      at vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2395476
      at Object.t.unstable_runWithPriority (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:25151)
      at Ms (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2395410)
      at xs (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2395186)
      at Es (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2394531)
      at ms (vscode-resource://file///c%3A/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/datascience-ui/notebook/commons.initial.bundle.js:2:2393552)
  </code></pre>
  <p><strong>output</strong></p>
  <blockquote>
  <p>User belongs to experiment group ‘ShowPlayIcon - start’</p>
  <p>User belongs to experiment group ‘ShowExtensionSurveyPrompt - enabled’</p>
  <p>User belongs to experiment group ‘DebugAdapterFactory - experiment’</p>
  <p>User belongs to experiment group ‘PtvsdWheels37 - experiment’</p>
  <p>User belongs to experiment group ‘UseTerminalToGetActivatedEnvVars -
  control’</p>
  <p>User belongs to experiment group ‘LocalZMQKernel - control’</p>
  <p>User belongs to experiment group ‘CollectLSRequestTiming - control’</p>
  <p>User belongs to experiment group ‘CollectNodeLSRequestTiming -
  experiment’</p>
  <p>User belongs to experiment group ‘EnableIPyWidgets - experiment’</p>
  <p>User belongs to experiment group ‘DeprecatePythonPath - control’</p>
  <p>User belongs to experiment group ‘RunByLine - control’</p>
  <p>User belongs to experiment group ‘CustomEditorSupport - control’</p>
  <p>conda --version</p>
  <p>pyenv root</p>
  <p>python3.7
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>python3.6
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>python3
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>python2
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>python
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>py -3.7
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>py -3.6
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>py -3
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>py -2
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import sys;print(sys.executable)”</p>
  <p>Python interpreter path: ~\anaconda3\envs\viz2\python.exe</p>
  <p>Starting Microsoft Python language server.</p>
  <p>~\miniconda3\Scripts\conda.exe info --json</p>
  <p>~\miniconda3\Scripts\conda.exe info --json</p>
  <p>~\miniconda3\Scripts\conda.exe env list</p>
  <p>~\miniconda3\Scripts\conda.exe info --json</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import jupyter”</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  -c “import notebook”</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  jupyter kernelspec --version</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  vscode_datascience_helpers.daemon
  --daemon-module=vscode_datascience_helpers.jupyter_daemon -v</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  vscode_datascience_helpers.daemon
  --daemon-module=vscode_datascience_helpers.jupyter_daemon -v</p>
  <p>~\Anaconda3\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  vscode_datascience_helpers.daemon
  --daemon-module=vscode_datascience_helpers.jupyter_daemon -v</p>
  <p>~\Anaconda3\python.exe (daemon) -m jupyter notebook --no-browser
  --notebook-dir=C:\Users\cg\AppData\Local\Temp\26614261-c8ea-450c-9926-d75a7af2814a
  --config=C:\Users\cg\AppData\Local\Temp\26614261-c8ea-450c-9926-d75a7af2814a\jupyter_notebook_config.py
  --NotebookApp.iopub_data_rate_limit=10000000000.0</p>
  <p>~\Anaconda3\python.exe (daemon) -m jupyter kernelspec list --json</p>
  <p>~\Anaconda3\python.exe (daemon) -m jupyter kernelspec list --json</p>
  <p>~\miniconda3\Scripts\conda.exe env list</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getJupyterKernels.py</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getJupyterKernels.py</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py</p>
  <p>~\Anaconda3\python.exe (daemon)
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  “import bokeh, holoviews as hv # noqa”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  “import panel as pn”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  “from bokeh.sampledata.iris import flowers”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  “import hvplot.streamz # noqa”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  “import hvplot.pandas # noqa”</p>
  <p>~\anaconda3\envs\viz2\python.exe
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py
  c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\normalizeForInterpreter.py
  &quot;flowers.hvplot.bivariate(x=‘sepal_width’, y=‘sepal_length’,
  width=600,
  groupby='species')&quot; ~\miniconda3\Scripts\conda.exe info --json</p>
  </blockquote>