Where should be changed to your IDL installation directory. Instead of copying the kernel.json file, you can define an environment variable: JUPYTER_PATH = /lib/bridges Note: For all platforms, be sure to create a directory named kernels with a subdirectory named IDL and copy the kernel.json file into that directory.
To install for all users: %PROGRAMDATA%\jupyter\kernels\IDL To install for a single user on Macos: ~/Library/Jupyter/kernels/IDL Windows To install for a single user on linux: ~/.local/share/jupyter/kernels/IDL
To install for all users: /usr/share/jupyter/kernels/IDL The IDL kernel can be found in: /lib/bridges/kernels/IDL/kernel.jsonĭepending upon your platform, this file should be installed into one of the following directories. Once IPython (Jupyter) has been installed, you need to install the IDL kernel. įor example, if you are using the Anaconda python package, you can install IPython using the following commands: conda update conda conda install jupyter Then install IPython using the instructions for your platform. If you encounter errors, see Python Bridge for troubleshooting. You can test this using the following Python command: > from idl_kernel import *
Make sure that /lib/bridges is on the Python path so that Python can find the idl_kernel.py script. Installationįirst, install IDL and set up the Python Bridge. The IDL IPython Kernel provides the necessary hooks for an IPython (Jupyter) notebook to run IDL code.