```{python}
#| label: importing
import numpy as np
import pandas as pd
from palmerpenguins import load_penguins
import matplotlib.pyplot as plt
```
template
This is a sample of a jupyter notebook that was rendered by quarto.
Using Quarto with jupyter
See the quarto docs on writing jupyter notebooks for rendering with quarto:
Environments
It would be useful, if you’re using a conda environment for your tutorial, to export it to an env.yml
file.
# shell
conda env export > env.yml
See also the quarto recommendations for use of conda.
Making a plot
```{python}
#| label: plotting
= load_penguins()
penguins
= {'Adelie':'blue', 'Gentoo':'orange', 'Chinstrap':'green'}
colors
plt.scatter(penguins.flipper_length_mm,
penguins.body_mass_g, = penguins.species.apply(lambda x: colors[x]))
c'Flipper Length')
plt.xlabel('Body Mass')
plt.ylabel(
plt.show()
plt.close()```
Reuse
CC-BY-SA 4.0
Citation
BibTeX citation:
@online{doe2025,
author = {Doe, Robin},
title = {Template},
series = {Linguistics Methods Hub},
date = {2025-09-01},
url = {https://lingmethodshub.github.io/content/contributing/template/02_jupyter.html},
langid = {en}
}
For attribution, please cite this work as:
Doe, Robin. 2025, September 1. template. Linguistics Methods
Hub. (https://lingmethodshub.github.io/content/contributing/template/02_jupyter.html).