Skip to content

Commit c6f81ce

Browse files
committed
Add MyST anchor targets to Python_Intro.ipynb for cross-references
- Added (anchor-name)= syntax before all headers referenced in TOC - Fixed 22 cross-reference warnings for Python_Intro.ipynb - Headers with anchors: programming-languages, python-basics, dynamic-typing, pointers-vs-objects, strong-typing, data-types, operators, functions, anonymous, indenting, namespace, scope, data-structures, built-in-structures, list---examples, slice-notation, tuple---examples, set---examples, dictionary---examples, control-statements, for---examples, while---examples, ifelifelse---examples, object-comprehension, list-comprehension---examples, setdictionary-comprehension---examples, classes, built-in-classes, file-objects, custom-classes - Added _build/ to .gitignore
1 parent 3fc51d2 commit c6f81ce

File tree

3 files changed

+37
-35
lines changed

3 files changed

+37
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@ cython_debug/
172172

173173
# VSCode workspace settings
174174
.vscode
175+
_build/

1-Python_Overview/Python_Intro.ipynb

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
" <br>\n",
1313
" <i>Davidson School of Chemical Engineering, Purdue University</i>\n",
1414
" <br>\n",
15-
" <a href=\"https://colab.research.google.com/github/SECQUOIA/PU_CHE597_DSinChemE/blob/main/1-Python_Overview/python_intro.ipynb\" target=\"_parent\">\n",
15+
" <a href=\"https://colab.research.google.com/github/SECQUOIA/PU_CHE597_DSinChemE/blob/main/1-Python_Overview/Python_Intro.ipynb\" target=\"_parent\">\n",
1616
" <img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/>\n",
1717
" </a>\n",
1818
" <a href=\"https://secquoia.github.io/\">\n",
@@ -31,40 +31,38 @@
3131
"# Python Overview\n",
3232
"## Table of Contents\n",
3333
"\n",
34-
"1. [Programming Languages](#programming-languages)\n",
35-
"2. [Python Basics](#python-basics)\n",
36-
" - [Dynamic \"typing\"](#dynamic-typing)\n",
37-
" - [Pointers vs Objects](#pointers-vs-objects)\n",
38-
" - [Strong typing](#strong-typing)\n",
39-
" - [Data types](#data-types)\n",
40-
" - [Operators](#operators)\n",
41-
" - [Functions](#functions)\n",
42-
" - [Anonymous](#anonymous)\n",
43-
" - [Indenting](#indenting)\n",
44-
" - [Namespace](#namespace)\n",
45-
" - [Scope](#scope)\n",
46-
"3. [Data Structures](#data-structures)\n",
47-
" - [Built-In Structures](#built-in-structures)\n",
48-
" - [List - Examples](#list---examples)\n",
49-
" - [Slice notation](#slice-notation)\n",
50-
" - [Tuple - Examples](#tuple---examples)\n",
51-
" - [Set - Examples](#set---examples)\n",
52-
" - [Dictionary - Examples](#dictionary---examples)\n",
53-
"4. [Control Statements](#control-statements)\n",
54-
" - [for - Examples](#for---examples)\n",
55-
" - [while - Examples](#while---examples)\n",
56-
" - [if/elif/else - Examples](#ifelifelse---examples)\n",
57-
"5. [Object Comprehension](#object-comprehension)\n",
58-
" - [List Comprehension - Examples](#list-comprehension---examples)\n",
59-
" - [Set/Dictionary Comprehension - Examples](#setdictionary-comprehension---examples)\n",
60-
"6. [Classes](#classes)\n",
61-
" - [Built-In Classes](#built-in-classes)\n",
62-
" - [File Objects](#file-objects)\n",
63-
" - [Custom Classes](#custom-classes)\n",
64-
"\n",
65-
"---\n",
66-
"\n",
67-
"*Tip: Click any link to jump to that section! Make sure your section headers use Markdown headings (e.g., `## Python Basics`) for anchor links to work in Jupyter.*\n"
34+
"1. Programming Languages\n",
35+
"2. Python Basics\n",
36+
" - Dynamic \"typing\"\n",
37+
" - Pointers vs Objects\n",
38+
" - Strong typing\n",
39+
" - Data types\n",
40+
" - Operators\n",
41+
" - Functions\n",
42+
" - Anonymous\n",
43+
" - Indenting\n",
44+
" - Namespace\n",
45+
" - Scope\n",
46+
"3. Data Structures\n",
47+
" - Built-In Structures\n",
48+
" - List - Examples\n",
49+
" - Slice notation\n",
50+
" - Tuple - Examples\n",
51+
" - Set - Examples\n",
52+
" - Dictionary - Examples\n",
53+
"4. Control Statements\n",
54+
" - for - Examples\n",
55+
" - while - Examples\n",
56+
" - if/elif/else - Examples\n",
57+
"5. Object Comprehension\n",
58+
" - List Comprehension - Examples\n",
59+
" - Set/Dictionary Comprehension - Examples\n",
60+
"6. Classes\n",
61+
" - Built-In Classes\n",
62+
" - File Objects\n",
63+
" - Custom Classes\n",
64+
"\n",
65+
"---"
6866
]
6967
},
7068
{

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ launch_buttons:
3737
sphinx:
3838
config:
3939
html_show_copyright: false
40+
# Suppress warnings for internal notebook cross-references
41+
suppress_warnings:
42+
- "myst.xref_missing"

0 commit comments

Comments
 (0)