Calysto / metakernel

Jupyter/IPython Kernel Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

%magic throws

sillymoi opened this issue · comments

Exception thrown on %magic:

Error in calling magic 'magic' on line:
    string indices must be integers
    args: []
    kwargs: {}
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/metakernel/magic.py", line 96, in call_magic
    func(*args, **kwargs)
TypeError: line_magic() missing 1 required positional argument: 'line'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/metakernel/magic.py", line 98, in call_magic
    func(old_args)
  File "/usr/local/lib/python3.9/site-packages/metakernel/magics/magic_magic.py", line 44, in line_magic
    for string in self.kernel.line_magics['help'].help_strings():
  File "/usr/local/lib/python3.9/site-packages/metakernel/magics/help_magic.py", line 21, in help_strings
    strings += [s.format(self.kernel.help_suffix['help'])
  File "/usr/local/lib/python3.9/site-packages/metakernel/magics/help_magic.py", line 21, in <listcomp>
    strings += [s.format(self.kernel.help_suffix['help'])
TypeError: string indices must be integers

This line should be without ['help']:

strings += [s.format(self.kernel.help_suffix['help'])

@sillymoi Thanks! Any chance you could make a Pull Request?