Skip to content

Commit 9627329

Browse files
committed
Ipython 9 fix
1 parent 9ff53ca commit 9627329

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nbs/02_shell.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@
780780
"[{'name': 'stdout',\n",
781781
" 'output_type': 'stream',\n",
782782
" 'text': ['CPU times: user 1e+03 ns, sys: 0 ns, total: 1e+03 ns\\n',\n",
783-
" 'Wall time: 1.91 us\\n']},\n",
783+
" 'Wall time: 2.15 us\\n']},\n",
784784
" {'data': {'text/plain': ['2']},\n",
785785
" 'metadata': {},\n",
786786
" 'output_type': 'execute_result',\n",
@@ -900,7 +900,7 @@
900900
"outputs": [],
901901
"source": [
902902
"from IPython.core.ultratb import VerboseTB\n",
903-
"formatter = VerboseTB(color_scheme='Linux')"
903+
"formatter = VerboseTB(theme_name='linux')"
904904
]
905905
},
906906
{
@@ -1806,7 +1806,7 @@
18061806
"===========================================================================\n",
18071807
"\n",
18081808
"While Executing Cell #2:\n",
1809-
"['Traceback (most recent call last):\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_92005/1421292703.py\", line 3, in <module>\\n s.execute(\\'../tests/error.ipynb\\', exc_stop=True)\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_92005/3609882568.py\", line 18, in execute\\n self.run_all(nb, exc_stop=exc_stop, preproc=preproc, postproc=postproc,\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_92005/3068237356.py\", line 19, in run_all\\n if self.exc and exc_stop: raise self.exc from None\\n ^^^^^^^^^^^^^^^^^^^^^^^^\\n', ' File \"/Users/iflath/.venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3546, in run_code\\n exec(code_obj, self.user_global_ns, self.user_ns)\\n', ' File \"<ipython-input-1-b968a57a586e>\", line 3, in <module>\\n foo()\\n', ' File \"/Users/iflath/git/fastai/execnb/tests/err.py\", line 2, in foo\\n assert 13 == 98\\n ^^^^^^^^\\n', 'AssertionError\\n']\n",
1809+
"['Traceback (most recent call last):\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_96814/1421292703.py\", line 3, in <module>\\n s.execute(\\'../tests/error.ipynb\\', exc_stop=True)\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_96814/3609882568.py\", line 18, in execute\\n self.run_all(nb, exc_stop=exc_stop, preproc=preproc, postproc=postproc,\\n', ' File \"/var/folders/_8/cpj54rdn0w1fjskv7g8bn2fr0000gn/T/ipykernel_96814/3068237356.py\", line 19, in run_all\\n if self.exc and exc_stop: raise self.exc from None\\n ^^^^^^^^^^^^^^^^^^^^^^^^\\n', ' File \"/Users/iflath/.venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3546, in run_code\\n exec(code_obj, self.user_global_ns, self.user_ns)\\n', ' File \"<ipython-input-1-b968a57a586e>\", line 3, in <module>\\n foo()\\n', ' File \"/Users/iflath/git/fastai/execnb/tests/err.py\", line 2, in foo\\n assert 13 == 98\\n ^^^^^^^^\\n', 'AssertionError\\n']\n",
18101810
"\n"
18111811
]
18121812
}

0 commit comments

Comments
 (0)