Skip to content

%magic throws #232

Open
Open
@sillymoi

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions