Skip to content

Commit a3d09f1

Browse files
committed
fix: fix bootstrap change
1 parent 9360104 commit a3d09f1

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

examples/absolute-importing.ipynb

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "c5ab5981-f632-4dc7-99e5-0235d4ce891b",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"# Ignore this code -- it's a fix for CI\n",
11+
"try:\n",
12+
" import literary.notebook\n",
13+
"except ImportError:\n",
14+
" import sys\n",
15+
" import literary.module\n",
16+
" sys.modules['literary.notebook'] = literary.module"
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": 2,
22+
"id": "ce0897c0-b152-4f0a-b384-5b262d1187bc",
23+
"metadata": {},
24+
"outputs": [
25+
{
26+
"name": "stderr",
27+
"output_type": "stream",
28+
"text": [
29+
"/home/angus/Git/literary/.venv/lib/python3.13/site-packages/literary/module/__init__.py:52: UserWarning: Couldn't determine the package name for the current working directory /home/angus/Git/literary/examples. This might be because the current project has not been installed in editable mode.\n",
30+
" warnings.warn(f\"Couldn't determine the package name for the current working directory {cwd}. This might be because the current project has not been installed in editable mode.\")\n"
31+
]
32+
}
33+
],
34+
"source": [
35+
"%load_ext literary.notebook"
36+
]
37+
},
338
{
439
"cell_type": "markdown",
540
"id": "under-general",
@@ -25,7 +60,7 @@
2560
},
2661
{
2762
"cell_type": "code",
28-
"execution_count": 1,
63+
"execution_count": 3,
2964
"id": "interior-start",
3065
"metadata": {
3166
"editable": true,
@@ -41,7 +76,7 @@
4176
},
4277
{
4378
"cell_type": "code",
44-
"execution_count": 2,
79+
"execution_count": 4,
4580
"id": "handled-picture",
4681
"metadata": {
4782
"tags": []
@@ -60,7 +95,7 @@
6095
" '__spec__']"
6196
]
6297
},
63-
"execution_count": 2,
98+
"execution_count": 4,
6499
"metadata": {},
65100
"output_type": "execute_result"
66101
}
@@ -79,7 +114,7 @@
79114
},
80115
{
81116
"cell_type": "code",
82-
"execution_count": 3,
117+
"execution_count": 5,
83118
"id": "chicken-grill",
84119
"metadata": {
85120
"tags": []
@@ -91,7 +126,7 @@
91126
},
92127
{
93128
"cell_type": "code",
94-
"execution_count": 4,
129+
"execution_count": 6,
95130
"id": "desirable-promotion",
96131
"metadata": {
97132
"tags": []
@@ -111,7 +146,7 @@
111146
" 'how_long_is_a_piece_of_string']"
112147
]
113148
},
114-
"execution_count": 4,
149+
"execution_count": 6,
115150
"metadata": {},
116151
"output_type": "execute_result"
117152
}

0 commit comments

Comments
 (0)