SyntaxError: Unexpected token '?' at [runCodeHere....]

Hi total newbie here.

Very frustrated*. 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]

here the versions i’m using

hvplot.version = ‘0.6.0’
holoviews.version =‘1.13.3’
pd.version = ‘1.0.5’

i have the following simple code… from one of your tutorials

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’ )

this is what i managed to capture in a debugger

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)

output
User belongs to experiment group ‘ShowPlayIcon - start’

User belongs to experiment group ‘ShowExtensionSurveyPrompt - enabled’

User belongs to experiment group ‘DebugAdapterFactory - experiment’

User belongs to experiment group ‘PtvsdWheels37 - experiment’

User belongs to experiment group ‘UseTerminalToGetActivatedEnvVars - control’

User belongs to experiment group ‘LocalZMQKernel - control’

User belongs to experiment group ‘CollectLSRequestTiming - control’

User belongs to experiment group ‘CollectNodeLSRequestTiming - experiment’

User belongs to experiment group ‘EnableIPyWidgets - experiment’

User belongs to experiment group ‘DeprecatePythonPath - control’

User belongs to experiment group ‘RunByLine - control’

User belongs to experiment group ‘CustomEditorSupport - control’

conda --version

pyenv root

python3.7 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

python3.6 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

python3 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

python2 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

python c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

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)”

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)”

py -3 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

py -2 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”

~\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)”

Python interpreter path: ~\anaconda3\envs\viz2\python.exe

Starting Microsoft Python language server.

~\miniconda3\Scripts\conda.exe info --json

~\miniconda3\Scripts\conda.exe info --json

~\miniconda3\Scripts\conda.exe env list

~\miniconda3\Scripts\conda.exe info --json

~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import jupyter”

~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import notebook”

~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version

~\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

~\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

~\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

~\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

~\Anaconda3\python.exe (daemon) -m jupyter kernelspec list --json

~\Anaconda3\python.exe (daemon) -m jupyter kernelspec list --json

~\miniconda3\Scripts\conda.exe env list

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getJupyterKernels.py

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getJupyterKernels.py

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py

~\Anaconda3\python.exe (daemon) c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\vscode_datascience_helpers\getServerInfo.py

~\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”

~\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”

~\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”

~\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”

~\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”

~\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 "flowers.hvplot.bivariate(x=‘sepal_width’, y=‘sepal_length’, width=600,

                     groupby='species')"

~\miniconda3\Scripts\conda.exe info --json

Seems to be the same issue as https://github.com/holoviz/pyviz_comms/issues/62, which was caused by using a Javascript feature not supported by old browsers. I’ll make a fix in pyviz_comms and push a new release out.

Thank you for your response Philpp.

Two follow up questions:

a) were you able to release the solution?,
b) what’s the best way for me to get access to it? Do I re-install, update, or?, …can you kindly provide a command line(s) solution for it? (sorry for the stp questions)

Regards,

[ SyntaxError: Unexpected token ‘?’ at [runCodeHere….]]

Just tagged pyviz_comms 0.7.6 which should be up on PyPI and the conda pyviz and conda-forge channels shortly.

Hi Philipp.

Fantastic, much appreciated. I’ve upgraded the pyviz_comms version as suggested.

Good news first… then …not so good news.

Good news: The error messages I reported last are GONE…

bad news…: is that did not solve the pressing issue for me: get to do something useful with the tool and my data… In particular…

Now I have NO error messages, but the panel output is inert… by what I mean: Bokeh is able to render the chart with no problem, and the widgets (drop boxes appear) in the panel, but the Bokeh figure is not responsive to changes in selection at the dropboxes.

Here is the simple code again;

#%%
import panel as pn
import hvplot.pandas # noqa
from bokeh.sampledata.iris import flowers
#%%
x = pn.widgets.Select(name=‘x’, options=[‘sepal_width’, ‘petal_width’])
y = pn.widgets.Select(name=‘y’, options=[‘sepal_length’, ‘petal_length’])
kind = pn.widgets.Select(name=‘kind’, value=‘scatter’, options=[‘bivariate’, ‘scatter’])

plot = flowers.hvplot(x=x, y=y, kind=kind, colorbar=False, width=600)
pn.Row(pn.WidgetBox(x, y, kind), plot)

#############

Sorry I have no clue on what to send you that is useful to diagnose the problem… but here are the logs I could gather. Hope they help

User belongs to experiment group ‘ShowPlayIcon - start’
User belongs to experiment group ‘ShowExtensionSurveyPrompt - enabled’
User belongs to experiment group ‘DebugAdapterFactory - experiment’
User belongs to experiment group ‘PtvsdWheels37 - experiment’
User belongs to experiment group ‘UseTerminalToGetActivatedEnvVars - control’
User belongs to experiment group ‘LocalZMQKernel - experiment’
User belongs to experiment group ‘CollectLSRequestTiming - control’
User belongs to experiment group ‘CollectNodeLSRequestTiming - experiment’
User belongs to experiment group ‘EnableIPyWidgets - experiment’
User belongs to experiment group ‘DeprecatePythonPath - control’
User belongs to experiment group ‘RunByLine - control’
User belongs to experiment group ‘CustomEditorSupport - control’

conda --version
pyenv root
python3.7 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
python3.6 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
python3 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
python2 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
python c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
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)”
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)”
py -3 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
py -2 c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
~\anaconda3\envs\my_viz\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)”
Python interpreter path: ~\anaconda3\envs\my_viz\python.exe
Starting Microsoft Python language server.
~\miniconda3\Scripts\conda.exe info --json
~\miniconda3\Scripts\conda.exe info --json
~\miniconda3\Scripts\conda.exe env list
~\miniconda3\Scripts\conda.exe info --json
~\miniconda3\Scripts\conda.exe info --json
~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import notebook”
~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import jupyter”
~\Anaconda3\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
~\miniconda3\Scripts\conda.exe env list
~\anaconda3\envs\my_viz\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import ipykernel”
~\anaconda3\envs\my_viz\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.kernel_launcher_daemon -v
~\anaconda3\envs\my_viz\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import ipykernel”
~\anaconda3\envs\my_viz\python.exe c:\Users\cg.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py -c “import ipykernel”
~\anaconda3\envs\my_viz\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.kernel_launcher_daemon -v
~\anaconda3\envs\my_viz\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.kernel_launcher_daemon -v

########################

[Info - 15:13:58] Analysis cache path: C:\Users\cg\AppData\Local\Microsoft\Python Language Server
[Info - 15:13:58] Microsoft Python Language Server version 0.5.51.0
[Info - 15:13:58] Workspace root: c:\Users\cg\covid
[Info - 15:13:59] GetCurrentSearchPaths C:\Users\cg\anaconda3\envs\my_viz\python.exe
[Info - 15:13:59] Interpreter search paths:
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\dlls
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\lib
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\lib\site-packages
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\lib\site-packages\win32
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\lib\site-packages\win32\lib
[Info - 15:13:59] c:\users\cg\anaconda3\envs\my_viz\lib\site-packages\pythonwin
[Info - 15:13:59] User search paths:
2020-07-07 14:13:59.5266027 [W:onnxruntime:, graph.cc:814 onnxruntime::Graph::Graph] Initializer embeddings_matrix:0_quantized appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-07-07 14:13:59.5272873 [W:onnxruntime:, graph.cc:814 onnxruntime::Graph::Graph] Initializer embeddings_matrix:0_scale appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-07-07 14:13:59.5279281 [W:onnxruntime:, graph.cc:814 onnxruntime::Graph::Graph] Initializer embeddings_matrix:0_zero_point appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-07-07 14:13:59.5286006 [W:onnxruntime:, graph.cc:814 onnxruntime::Graph::Graph] Initializer fixed_quantization_range_uint8 appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-07-07 14:13:59.5292677 [W:onnxruntime:, graph.cc:814 onnxruntime::Graph::Graph] Initializer fixed_zero appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
[Info - 15:14:07] Initializing for C:\Users\cg\anaconda3\envs\my_viz\python.exe
[Info - 15:14:07] Analysis caching mode: None.
[Info - 15:16:07] Analysis caching mode: None.

#########################

[2020-07-07 15:13:53.140] [exthost] [info] extension host started
[2020-07-07 15:13:53.255] [exthost] [info] ExtensionService#_doActivateExtension aaron-bond.better-comments {“startup”:false,“extensionId”:{“value”:“aaron-bond.better-comments”,“_lower”:“aaron-bond.better-comments”},“activationEvent”:“onLanguage:plaintext”}
[2020-07-07 15:13:53.255] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/cg/.vscode/extensions/aaron-bond.better-comments-2.0.5/out/extension
[2020-07-07 15:13:53.264] [exthost] [info] ExtensionService#_doActivateExtension vscode.python {“startup”:false,“extensionId”:{“value”:“vscode.python”,“_lower”:“vscode.python”},“activationEvent”:“onLanguage:python”}
[2020-07-07 15:13:53.264] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/python/dist/pythonMain
[2020-07-07 15:13:53.267] [exthost] [info] ExtensionService#_doActivateExtension batisteo.vscode-django {“startup”:false,“extensionId”:{“value”:“batisteo.vscode-django”,“_lower”:“batisteo.vscode-django”},“activationEvent”:“onLanguage:python”}
[2020-07-07 15:13:53.267] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/cg/.vscode/extensions/batisteo.vscode-django-0.20.0/out/extension
[2020-07-07 15:13:53.279] [exthost] [info] ExtensionService#_doActivateExtension KevinRose.vsc-python-indent {“startup”:false,“extensionId”:{“value”:“KevinRose.vsc-python-indent”,“_lower”:“kevinrose.vsc-python-indent”},“activationEvent”:“onLanguage:python”}
[2020-07-07 15:13:53.279] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/cg/.vscode/extensions/kevinrose.vsc-python-indent-1.10.1/out/extension.js
[2020-07-07 15:13:53.285] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {“startup”:false,“extensionId”:{“value”:“ms-python.python”,“_lower”:“ms-python.python”},“activationEvent”:“onLanguage:python”}
[2020-07-07 15:13:53.285] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/cg/.vscode/extensions/ms-python.python-2020.6.91350/out/client/extension
[2020-07-07 15:13:53.533] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode {“startup”:false,“extensionId”:{“value”:“VisualStudioExptTeam.vscodeintellicode”,“_lower”:“visualstudioexptteam.vscodeintellicode”},“activationEvent”:“onLanguage:python”}
[2020-07-07 15:13:53.533] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/cg/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.9/dist/intellicode
[2020-07-07 15:13:53.593] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {“startup”:true,“extensionId”:{“value”:“vscode.debug-auto-launch”,“_lower”:“vscode.debug-auto-launch”},“activationEvent”:““}
[2020-07-07 15:13:53.593] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/debug-auto-launch/dist/extension
[2020-07-07 15:13:53.596] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {“startup”:true,“extensionId”:{“value”:“vscode.emmet”,”_lower":“vscode.emmet”},“activationEvent”:"
”}
[2020-07-07 15:13:53.596] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/emmet/dist/extension
[2020-07-07 15:13:53.604] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {“startup”:true,“extensionId”:{“value”:“vscode.github”,“_lower”:“vscode.github”},“activationEvent”:““}
[2020-07-07 15:13:53.604] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/git/dist/main
[2020-07-07 15:13:53.614] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {“startup”:true,“extensionId”:{“value”:“vscode.github-authentication”,”_lower":“vscode.github-authentication”},“activationEvent”:"
”}
[2020-07-07 15:13:53.614] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/github-authentication/dist/extension.js
[2020-07-07 15:13:53.624] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {“startup”:true,“extensionId”:{“value”:“vscode.merge-conflict”,“_lower”:“vscode.merge-conflict”},“activationEvent”:““}
[2020-07-07 15:13:53.624] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/merge-conflict/dist/extension
[2020-07-07 15:13:53.627] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication {“startup”:true,“extensionId”:{“value”:“vscode.microsoft-authentication”,”_lower":“vscode.microsoft-authentication”},“activationEvent”:"
”}
[2020-07-07 15:13:53.627] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/microsoft-authentication/dist/extension.js
[2020-07-07 15:13:53.636] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-result {“startup”:true,“extensionId”:{“value”:“vscode.search-result”,“_lower”:“vscode.search-result”},“activationEvent”:““}
[2020-07-07 15:13:53.636] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/search-result/dist/extension.js
[2020-07-07 15:13:54.564] [exthost] [info] ExtensionService#_doActivateExtension vscode.github {“startup”:true,“extensionId”:{“value”:“vscode.github”,”_lower":“vscode.github”},“activationEvent”:"
”}
[2020-07-07 15:13:54.564] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/github/dist/extension.js
[2020-07-07 15:13:55.217] [exthost] [error] Activating extension vscode.github failed due to an error:
[2020-07-07 15:13:55.221] [exthost] [error] Error: Git model not found
at e.getAPI (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\main.js:53:45613)
at r.activate (c:\Program Files\Microsoft VS Code\resources\app\extensions\github\dist\extension.js:1:6686)
at Function._callActivateOptional (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:840:509)
at Function._callActivate (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:840:160)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:838:960
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async Promise.all (index 0)
at async Promise.all (index 0)
[2020-07-07 15:13:55.222] [exthost] [info] eager extensions activated
[2020-07-07 15:16:02.988] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing {“startup”:false,“extensionId”:{“value”:“vscode.configuration-editing”,“_lower”:“vscode.configuration-editing”},“activationEvent”:“onLanguage:jsonc”}
[2020-07-07 15:16:02.989] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/configuration-editing/dist/extension
[2020-07-07 15:16:02.995] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features {“startup”:false,“extensionId”:{“value”:“vscode.json-language-features”,“_lower”:“vscode.json-language-features”},“activationEvent”:“onLanguage:jsonc”}
[2020-07-07 15:16:02.995] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/json-language-features/client/dist/jsonMain
[2020-07-07 15:16:03.004] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {“startup”:false,“extensionId”:{“value”:“vscode.typescript-language-features”,“_lower”:“vscode.typescript-language-features”},“activationEvent”:“onLanguage:jsonc”}
[2020-07-07 15:16:03.004] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/typescript-language-features/dist/extension
[2020-07-07 15:16:35.883] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-server-ready {“startup”:false,“extensionId”:{“value”:“vscode.debug-server-ready”,“_lower”:“vscode.debug-server-ready”},“activationEvent”:“onDebugResolve”}
[2020-07-07 15:16:35.883] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/debug-server-ready/dist/extension

You’re running this in VSCode? In that case this is expected. In future versions we will support VSCode better but as of right now support is pretty limited.

You could try this:

pn.config._comms.objects.append('vscode')
pn.config.comms = 'vscode'

but I would not call that well supported currently.

Thank you Again Philipp.

Thank you for your time…I’ve tried your proposed solution. (did not solve the issue unfortunately)

pn.config._comms.objects.append(‘vscode’)
pn.config.comms = ‘vscode’

…it complained with not being able to append to a string… but I went directly to the pn.config code and appended it there…
so pn.config.comms=‘vscode’ can be accepted…

However, the panel is still dead (in terms of interactive response)… I tried for a couple of hours to work around … tried to use plotly as a back end… but that did not work either…

Would really appreciate if you could offer any quick fix to allow for basic interactivity…(simple figure (scatter, line, bar, ), where one can easily set dropdowns for each axis, and type (kind) of plot.

The quickest fix is probably just to try to install ipywidgets_bokeh and then display your Panel/HoloViews objects with pn.ipywidget(panel_obj).