Skip to content

Commit

Permalink
hilda_client: avoid lazy naming in magic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Mar 6, 2024
1 parent eebc741 commit 0555e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hilda/hilda_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ def _ipython_run_cell_hook(self, info):
Enable lazy loading for symbols
:param info: IPython's CellInfo object
"""
if info.raw_cell.startswith('!') or info.raw_cell.endswith('?'):
if info.raw_cell[0] in ['!', '%'] or info.raw_cell.endswith('?'):
return

for node in ast.walk(ast.parse(info.raw_cell)):
Expand Down

0 comments on commit 0555e7c

Please sign in to comment.