Run Error when running jupyter notebook cell

When I run a cell in jupyter notebook I get this error

Run Error "expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive"

I am on a configured jupyterhub server

 

Logs:

 

2019-08-22 14:09:06,912 [ 68878] WARN - ctions.ui.JupyterErrorReporter - Jupyter error 
com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:897)
at com.google.gson.Gson.fromJson(Gson.java:927)
at com.google.gson.Gson.fromJson(Gson.java:892)
at com.google.gson.Gson.fromJson(Gson.java:841)
at com.google.gson.Gson.fromJson(Gson.java:813)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRestClient.get(JupyterRestClient.kt:151)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRestClient.getKernelSpecs(JupyterRestClient.kt:87)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.core.JupyterClientImpl.getKernelSpecs(JupyterClient.kt:65)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.core.JupyterServerImpl.updateKernelSpecs(JupyterServers.kt:126)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRuntimeServiceImpl.createSession(JupyterNotebookExecution.kt:204)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRuntimeServiceImpl.createSessionSettings(JupyterNotebookExecution.kt:180)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRuntimeServiceImpl.createSessionSettings$default(JupyterNotebookExecution.kt:178)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterRuntimeServiceImpl.getOrCreateSession(JupyterNotebookExecution.kt:108)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterCellExecutionManager.executeCode(JupyterCellExecutionManager.kt:112)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterCellExecutionManager.access$executeCode(JupyterCellExecutionManager.kt:38)
at org.jetbrains.plugins.notebooks.jupyter.connections.execution.JupyterCellExecutionManager$executeCode$$inlined$synchronized$lambda$1.run(JupyterCellExecutionManager.kt:79)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2019-08-22 14:09:09,383 [ 71349] INFO - python.packaging.PyPackageUtil - Refreshing installed packages for SDK /Users/myname/Documents/projects/myproject/.venv/bin/python
2019-08-22 14:09:09,383 [ 71349] INFO - packaging.PyPackageManagerImpl - Running packaging tool: /Users/myname/Documents/projects/myproject/.venv/bin/python /Users/myname/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/192.5728.105/PyCharm.app/Contents/helpers/packaging_tool.py list
4

Hi,

Does jupyter server started correctly without IDE? Normally you can start it from the terminal using "jupyter notebook" command.

If yes, can you provide an example of .ipynb file that reproduce this error?

0

请先登录再写评论。