Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thebe #267

Merged
merged 1 commit into from
Apr 17, 2024
Merged

thebe #267

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@
'sphinx.ext.mathjax',
'sphinx_aaltoscicomp_branding',
'sphinxext.opengraph',
'sphinx_thebe',
]
myst_enable_extensions = ['colon_fence']

thebe_config = {
"selector": "div.highlight"
}

nb_execution_mode = "off"

ogp_site_name = "Python for Scientific Computing"
ogp_site_url = 'https://aaltoscicomp.github.io/python-for-scicomp/'
import datetime
Expand Down
2 changes: 2 additions & 0 deletions content/pandas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ material, including:
A quick Pandas preview
----------------------

.. thebe-button::

Let's get a flavor of what we can do with pandas (you won't be able to follow everything yet). We will be working with an example dataset containing the passenger list from the Titanic, which is often used in Kaggle competitions and data science tutorials. First step is to load pandas::

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sphinx-lesson
https://github.com/aaltoscicomp/sphinx-aaltoscicomp-branding/archive/master.zip
sphinx_rtd_theme_ext_color_contrast
sphinxext-opengraph
sphinx-thebe

# for web-apis execution
jsonlines
Expand Down
Loading