Skip to content

Commit 8da9045

Browse files
committed
x-refs now has a reference towards the hidden notebook
1 parent 3b09129 commit 8da9045

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

notebooks/2-05-xrefs-nb.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,11 @@ paris_map()
163163
### referencing the map
164164

165165
[this should show a map ?](#the-labeled-map)
166+
167+
+++
168+
169+
## referencing a hidden notebook
170+
171+
172+
173+
[Hover me to refer to the cell labeled `the-hidden-reference`](#the-hidden-reference)

notebooks/5-04-hidden-nb.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
jupytext:
3+
formats: md:myst
4+
text_representation:
5+
extension: .md
6+
format_name: myst
7+
kernelspec:
8+
display_name: Python 3 (ipykernel)
9+
language: python
10+
name: python3
11+
language_info:
12+
name: python
13+
pygments_lexer: ipython3
14+
nbconvert_exporter: python
15+
---
16+
17+
# a hidden notebook
18+
19+
+++
20+
21+
this is a hidden notebook with a code cell that has label `the-hidden-reference`
22+
23+
it is referred to from notebook on x-refs
24+
25+
```{code-cell} ipython3
26+
#| label: the-hidden-reference
27+
28+
# The comment above has special syntax and sets cell metadata.
29+
# This allows us to embed the output in other places.
30+
print("Hello world! from the-hidden-reference")
31+
```

0 commit comments

Comments
 (0)