Skip to content

Commit

Permalink
Reformat callout
Browse files Browse the repository at this point in the history
  • Loading branch information
johnne committed Oct 17, 2023
1 parent 9000594 commit 2c97599
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions pages/quarto/quarto-2-the-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,24 @@ header.

* Explicitly add `engine: jupyter` to your YAML header and render the document.

:::{.callout-important}
## Making sure your jupyter engine is recognized
Quarto attempts to identify a suitable Jupyter engine for your system when you include Python code chunks. However, if you want to use Jupyter available in a specific conda environment (_e.g._ your `quarto-env` environment) you need to take some extra steps. Please visit [this link](https://github.com/Anaconda-Platform/nb_conda_kernels#use-with-nbconvert-voila-papermill) and follow steps 1-4.
:::


While this is not necessary, it can be useful to explicitly set the language for
the document, as it makes it clearer from just the YAML header what language
will be used. There are also more language-related options for Quarto, but we'll
>**Making sure your jupyter engine is recognized** <br>
>Quarto attempts to identify a suitable Jupyter engine for your system when you include Python code chunks.
> However, if you want to use Jupyter available in a specific conda environment (_e.g._ your `quarto-env`
> environment) you need to take some extra steps. Please visit
> [this link](https://github.com/Anaconda-Platform/nb_conda_kernels#use-with-nbconvert-voila-papermill)
> and follow steps 1-4.
> Now you can also explicitly define what Jupyter kernel to use by adding the following to your YAML header:
> ```yaml
> jupyter:
> kernelspec:
> display_name: Python 3
> language: python
> name: conda-env-quarto-env-py
>```
It can be useful to explicitly set the language for the document, as it makes it clearer from just the
YAML header what language will be used. There are also more language-related options for Quarto, but we'll
save those for later in the tutorial.
> **Quick recap** <br>
Expand Down

0 comments on commit 2c97599

Please sign in to comment.