Skip to content

Commit

Permalink
Strip_magics should also strip line magic
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jul 4, 2023
1 parent ee37d1e commit 2d7b0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/ipython/preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def strip_magics(source):
"""
filtered=[]
for line in source.splitlines():
if not line.startswith('%') or line.startswith('%%'):
if not line.startswith('%'):
filtered.append(line)
return '\n'.join(filtered)

Expand Down

0 comments on commit 2d7b0f0

Please sign in to comment.