Skip to content

Commit

Permalink
Remove space from kernel launching arguments for better compatibility…
Browse files Browse the repository at this point in the history
… with VSCode

VSCode's Jupyter extension (by Microsoft) does not seem to quote arguments that it finds in kernel.json, which results in passing the python code as separate arguments.
Removed all the spaces from the script, to ensure that the entire python code is passed as one argument.
  • Loading branch information
lassoan committed Dec 3, 2021
1 parent 5689c71 commit b282a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JupyterKernel/Resources/kernel-template.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"{slicer_launcher_executable}",
"--no-splash",
"--python-code",
"connection_file=r'{connection_file}'; print('Jupyter connection file: ['+connection_file+']'); slicer.modules.jupyterkernel.startKernel(connection_file);slicer.util.mainWindow().showMinimized()"
"connection_file=r'{connection_file}';print('JupyterConnectionFile:['+connection_file+']');slicer.modules.jupyterkernel.startKernel(connection_file);slicer.util.mainWindow().showMinimized()"
]
}

0 comments on commit b282a2c

Please sign in to comment.