question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement inspect request

See original GitHub issue

Pressing Shift+Tab brings up the inspector window in the notebook, which shows documentation of the function where the cursor is at. Input code must be parsed to correctly identify the symbol that documentation should be displayed for.

Example:

Placing the cursor in getprofile shows its documentation (correctly ignores previous lines):

image

Placing the cursor after getrecursionlimit’s opening bracket, it shows documentation of getrecusrionlimit(correctly ignores getprofile symbol):

image

This is the input that xeus receives:

code: a=5
b=10
sys.getprofile(sys.getrecursionlimit()
cursor_pos: 24
detail_level: 0```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dgobbicommented, Aug 30, 2018

Regarding stubs for VTK, once the docstrings are fixed, someone could write a Python utility script to introspect the wrappers and generate the stubs. I’m not keen on having the stubs be part of the VTK distribution (the wrappers are already too heavy), but having a script that generates the stubs on demand seems like a good solution.

1reaction
dgobbicommented, Aug 30, 2018

PEP484 is useless in terms of describing the implementation (since it only talks about syntax). But after looking at Python’s funcobject.c the implementation seems pretty straightforward. It should be possible to add an __annotations__ dict to PyVTKMethodDescriptor.cxx alongside the existing __doc__ attribute.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analyze HTTP Requests and Responses with Chrome Devtools
Let's use the Network DevTool to inspect an HTTP request and its corresponding response so that we can understand what the browser is...
Read more >
Inspect HTTP requests - Beeceptor Docs
Beeceptor enables you to collect, parse, and view HTTP requests. You can create named endpoints and send requests. Use the endpoint's dashboard to...
Read more >
Inspecting HTTP client requests - Peter Hilton
The simplest available tool for inspecting HTTP requests is netcat - called nc on the Unix command line. You can use netcat to...
Read more >
Using the Browser's Developer Tools to Inspect the Pages ...
In this lesson, we're going to look at using your browser's developer tools to get a more detailed understanding of the HTTP requests...
Read more >
How to find the HTTP request from google chrome inspect ...
Restated in a short - can I use the inspect element feature of google chrome and then ask it to show me the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found