Bug description
I started at https://quarto.org/docs/get-started/ and used the macOS installer to install Quarto. quarto --help confirmed that this had worked.
Then I installed the VS Code extension from https://marketplace.visualstudio.com/items?itemName=quarto.quarto
Everything seemed to work, until I clicked "Render" in VS Code and got this error:
No module named 'nbformat'
I have many different versions of Python 3 installed on my machine. It was not at all obvious to me which one Quarto was using. After some investigation (described here) I figured out it was using this one:
/Applications/Xcode.app/Contents/Developer/usr/bin/python3
So I ran this command to fix my problem:
/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install nbformat nbclient
After doing that the Render button worked.
Interestingly, the output of quarto check shows /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 as the version of Python - but executing sys.executable in a cell in VS Code showed /Applications/Xcode.app/Contents/Developer/usr/bin/python3 instead. So there's a mismatch between Python versions here.
My operating system is macOS 12.2.1 and I'm running VS Code 1.70.2.
quarto check Output
[✓] Checking Quarto installation......OK
Version: 1.0.38
Path: /Applications/quarto/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.2
Path: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
Jupyter: 4.11.1
Kernels: python3
(-) Checking Jupyter engine render....Traceback (most recent call last):
File "/Applications/quarto/share/jupyter/jupyter.py", line 21, in <module>
from notebook import notebook_execute, RestartKernel
File "/Applications/quarto/share/jupyter/notebook.py", line 17, in <module>
from nbclient import NotebookClient
ModuleNotFoundError: No module named 'nbclient'
There is an unactivated Python environment in jupyter-venv. Did you forget to activate it?
[✓] Checking Jupyter engine render....OK
quarto tools check Output
~ % quarto tools check
[✓] Inspecting tools
Tool Status Installed Latest
chromium Not installed --- 869685
tinytex Up to date v2022.08 v2022.08
Checklist
Bug description
I started at https://quarto.org/docs/get-started/ and used the macOS installer to install Quarto.
quarto --helpconfirmed that this had worked.Then I installed the VS Code extension from https://marketplace.visualstudio.com/items?itemName=quarto.quarto
Everything seemed to work, until I clicked "Render" in VS Code and got this error:
I have many different versions of Python 3 installed on my machine. It was not at all obvious to me which one Quarto was using. After some investigation (described here) I figured out it was using this one:
So I ran this command to fix my problem:
After doing that the Render button worked.
Interestingly, the output of
quarto checkshows/Library/Frameworks/Python.framework/Versions/3.10/bin/python3as the version of Python - but executingsys.executablein a cell in VS Code showed/Applications/Xcode.app/Contents/Developer/usr/bin/python3instead. So there's a mismatch between Python versions here.My operating system is macOS 12.2.1 and I'm running VS Code 1.70.2.
quarto checkOutput[✓] Checking Quarto installation......OK Version: 1.0.38 Path: /Applications/quarto/bin [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.10.2 Path: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 Jupyter: 4.11.1 Kernels: python3 (-) Checking Jupyter engine render....Traceback (most recent call last): File "/Applications/quarto/share/jupyter/jupyter.py", line 21, in <module> from notebook import notebook_execute, RestartKernel File "/Applications/quarto/share/jupyter/notebook.py", line 17, in <module> from nbclient import NotebookClient ModuleNotFoundError: No module named 'nbclient' There is an unactivated Python environment in jupyter-venv. Did you forget to activate it? [✓] Checking Jupyter engine render....OKquarto tools checkOutput~ % quarto tools check [✓] Inspecting tools Tool Status Installed Latest chromium Not installed --- 869685 tinytex Up to date v2022.08 v2022.08Checklist
quarto checkin the "Quarto Check Output" text area?quarto tools checkin the "Quarto Tools Check Output" text area?