Jupyter Notebook not finding IQSharp

Viewed 180

I have been trying to get a Q# running for the Quantum Katas, but have been having some difficulty in finding the Q# kernal. The only kernal that shows up is the Python 3 one which is used for the Jupyter Notebook. The odd thing is that the kernal shows up when I do jupyter kernalspec list.I am using VS Code. This is the jupyter kernelspec list

1 Answers

Summarizing what was said in the comments above:

  • First, make sure iqsharp is installed. Run dotnet iqsharp --version to ensure that the tool exists.
    • If not, run dotnet tool install -g Microsoft.Quantum.IQSharp to install it.
  • Then run dotnet install iqsharp to register the IQ# kernel in your Jupyter configuration.
    • If your jupyter installation still doesn't recognize the kernel, it could be a permissions issue based on how you have installed and are running Jupyter. Try dotnet install iqsharp --user instead.

As for VS Code's Jupyter implementation, currently non-Python kernels such as R, Julia, Q#, etc. are not supported. This GitHub issue tracks adding support: https://github.com/microsoft/vscode-python/issues/8521

Related