Skip to content
Sign upLog in
← Back to Community

How to show docstring for Python classes?

Profile icon
Munfred

Hello, I'm new to repl (mostly I use Jupyter labs) and I'm trying to get the IDE to show the docstring for a class that I have imported. In juptyer this can be done with shift+tab, what is the equivalent command in repl? Is there anywhere I can see all the keyboard shortcuts?

Answered by theangryepicbanana [earned 5 cycles]
View Answer
Voters
Profile icon
Munfred
Comments
hotnewtop
Profile icon
theangryepicbanana

It should show up when you hover over the class name

Profile icon
Munfred

Thanks for the quick response - somehow it doesn't seem to be showing up for me. Is there a keyboard shortcut for it?

Profile icon
theangryepicbanana

@Munfred
you might need to enable code intelligence in the settings

Profile icon
Munfred

@theangryepicbanana
thank you that was it, it's working now

As general feedback for future development, I find it awkward having to mouseover and wait to see the docstring, and if I accidentally move the mouse while reading it goes away. Personally I'd prefer having available a keyboard shortcut like jupyter has.

Profile icon
EricDiMarzio

This is it. I think the training course I'm using actually had me turn code intelligence off early in the course.

@theangryepicbanana