Skip to content

Commit

Permalink
refactor lsmagic
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kai273 committed Mar 16, 2024
1 parent 3f83c68 commit 36a3759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/core/magics/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def lsmagic(self, parameter_s=''):
md = MagicsDisplay(self.shell.magics_manager, ignore=[])
if args.json:
return md._repr_json_()
return md
else:
return md

def _magic_docs(self, brief=False, rest=False):
"""Return docstrings from magic functions."""
Expand Down

0 comments on commit 36a3759

Please sign in to comment.