Skip to content

Quarto Jupyter: Unable to Import Modules #592

Answered by jjallaire
kmcleste asked this question in Q&A
Discussion options

You must be logged in to vote

You appear to be doing things correctly (activating the virtual environment in the shell and then calling quarto render).

If you execute quarto check jupyter you'll see exactly which Python version/environment Quarto is binding against. This should be discovered from the PATH so should indeed work as you are expecting it to (note that Quarto only works w/ Python 3 so is explicitly looking for that not Python 2). You can force the version of Python used by Quarto via the QUARTO_PYTHON environment variable.

Note that one thing that could be happening is that in the loading of the Keras library its failing to bind to plaidml somehow, and that manifests as a "ModuleNotFound" (that's complete …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@kmcleste
Comment options

@jjallaire
Comment options

@kmcleste
Comment options

@jjallaire
Comment options

Answer selected by kmcleste
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants