Skip to content

Instantly share code, notes, and snippets.

@zonca
Created December 11, 2025 18:10
Show Gist options
  • Select an option

  • Save zonca/3a60b36f4cf5f9c5f9d0863a51c21813 to your computer and use it in GitHub Desktop.

Select an option

Save zonca/3a60b36f4cf5f9c5f9d0863a51c21813 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# %% [markdown]
# # My Jupytext Example
#
# This is a simple Python script meant to be converted to a Jupyter Notebook using Jupytext.
# %%
import pandas as pd
data = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data)
print(df)
# %% [markdown]
# This is another markdown cell.
# %%
print("DataFrame multiplied by 2:")
print(df * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment