template

Author
Affiliation

University of State

Published

September 1, 2025

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

env.yml

See also the quarto recommendations for use of conda.

Making a plot

```{python}
#| label: importing
import numpy as np
import pandas as pd
from palmerpenguins import load_penguins
import matplotlib.pyplot as plt
```
```{python}
#| label: plotting
penguins = load_penguins()

colors = {'Adelie':'blue', 'Gentoo':'orange', 'Chinstrap':'green'}
plt.scatter(penguins.flipper_length_mm,
penguins.body_mass_g, 
c= penguins.species.apply(lambda x: colors[x]))
plt.xlabel('Flipper Length')
plt.ylabel('Body Mass')
plt.show()
plt.close()
```

pdf

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).