Commit 8f9fe3df authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain

single line comments are not magic

parent 81b916f2
......@@ -59,7 +59,8 @@ class BiochamKernel(Kernel):
output = 'No system magics available.'
image_filenames = []
# handle biocham magic
elif code.startswith('%') and '\n' not in code:
elif code.startswith('%') and not code.startswith('% ') and \
'\n' not in code:
output, payload = self._do_magic(code[1:])
image_filenames = []
# else, run code
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment