Skip to content

Commit

Permalink
Add import fallback for centuri_course module
Browse files Browse the repository at this point in the history
  • Loading branch information
leoguignard committed Feb 18, 2024
1 parent 2dfc429 commit 2359c7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 1-Introduction-to-Python/1-Variables.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@
"metadata": {},
"outputs": [],
"source": [
"from centuri_course import answer"
"try:\n",
" from centuri_course import answer\n",
"except ImportError:\n",
" %pip install centuri_course\n",
" from centuri_course import answer"
]
},
{
Expand Down

0 comments on commit 2359c7f

Please sign in to comment.