Skip to content

Commit

Permalink
Stripping comments from ViewMagic parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 11, 2015
1 parent fe86330 commit ef89ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/ipython/magics.py
Expand Up @@ -246,7 +246,8 @@ def pprint(self):

@line_cell_magic
def view(self, line, cell=None):
if line.strip() == '':
line = line.split('#')[0].strip()
if line == '':
self.pprint()
print("\nFor help with the %view magic, call %view?")
return
Expand Down

0 comments on commit ef89ba0

Please sign in to comment.