Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%magic throws #232

Open
sillymoi opened this issue Oct 14, 2021 · 1 comment · May be fixed by #285
Open

%magic throws #232

sillymoi opened this issue Oct 14, 2021 · 1 comment · May be fixed by #285

Comments

@sillymoi
Copy link

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'])

@dsblank
Copy link
Member

dsblank commented Oct 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants