jupyterlab/jupyterlab-toc

.py file navigation: remove method/class arguments

hottwaj opened this issue · 0 comments

I like how toc displays class & method names when viewing a .py file, but it also includes arguments for functions/methods and the superclass specification for classes, e.g. toc shows:

class MyClass(Super1, Super2, Super3)
def method1(self, arg1, arg2, kwarg1 = None, kwarg2 = 0)

The superclass spec & arguments make each line in the toc far too long and so the toc becomes hard to read & requires scrolling.

Can the class spec and method args be stripped out of the toc?

Thanks for this great extension! :)