Skip to content

Commit

Permalink
%run also in do_not_load
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s authored Aug 4, 2023
1 parent 7814397 commit 2ec9a7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gepetuto/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class DoNotLoadMagics(Magics):
def do_not_load_snippet(self, line):
"""Magic command to hide the snippet and let the student code by themself."""
if DoNotLoadMagics.force_load:
get_ipython().run_line_magic("run", "-i " + line)
get_ipython().run_line_magic("load", line) # noqa: F821

@line_magic
Expand Down

0 comments on commit 2ec9a7e

Please sign in to comment.