Esri / insights-scripting-guide

A guide and samples for working with the ArcGIS Insights scripting environment.
Apache License 2.0
29 stars 21 forks source link

fix latest yml to use the latest kernel gateway #17

Closed applecool closed 3 years ago

applecool commented 3 years ago

A bug has been introduced in the Notebook=6.1 which gets installed as a dependency with the Jupyter kernel gateway when our conda environment is created.

When you connect to the gateway url in your Insights desktop application, it will connect and then the scripting environment blows up when you choose either a Python3 or R kernel from the dropdown. This is due to the above bug and it gives you the following error message in the terminal where you have started your kernel gateway.

[W timestamp] 404 POST /api/kernels (127.0.0.1): Kernel does not exist: <coroutine object MappingKernelManager.start_kernel at 0x7fa59cc079e0>
[W timestamp] 404 POST /api/kernels (127.0.0.1) 1.10ms /Users/xxx/opt/anaconda3/envs/insights-base/lib/python3.7/asyncio/base_events.py:1771: RuntimeWarning: coroutine 'MappingKernelManager.start_kernel' was never awaited
 handle = self._ready.popleft()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

This issue was fixed here in Jupyter Kernel Gateway 2.4.2 version.

Updating the kernel gateway to its latest version fixes this problem.