Jupyter notebook example

Published

January 1, 2024

Modified

February 6, 2024

This is simply done by writing a markdown cell with the metadata at the very beginning of the notebook. Citations are like (Garcia et al. 2020).

Jupyter notebook example title

overview

🕰 Time Estimation: X minutes

💬 Learning Objectives:

    1. First item
    1. Second item

Write your introduction to the page here.

Writing admonitions

You can write admonitions as above in a markdown cell. Look for more in the quarto manual to hide admonitions or use other types like warnings or tips admonitions.

Running code

This is some example code

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt


dataset_url = ('https://raw.githubusercontent.com/m-mehdi/pandas_tutorials/main/weekly_stocks.csv')
df = pd.read_csv(dataset_url, parse_dates=['Date'], index_col='Date')
pd.set_option('display.max.columns', None)
print(df.head())
                  MSFT          FB        AAPL
Date                                          
2021-05-24  249.679993  328.730011  124.610001
2021-05-31  250.789993  330.350006  125.889999
2021-06-07  257.890015  331.260010  127.349998
2021-06-14  259.429993  329.660004  130.460007
2021-06-21  265.019989  341.369995  133.110001
df.plot(y='MSFT', figsize=(9,6))
Figure 1: Charts

References

Garcia, Leyla, Bérénice Batut, Melissa L. Burke, Mateusz Kuzak, Fotis Psomopoulos, Ricardo Arcila, Teresa K. Attwood, et al. 2020. Ten simple rules for making training materials FAIR.” PLoS Computational Biology 16 (5): 1–9. https://doi.org/10.1371/journal.pcbi.1007854.