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.

SG misses classes that aren't imported

See original GitHub issue

UPDATED:

Right now it seems like methods of classes will only be linked with backrefs if the class is imported somehow (e.g., import matplotlib.pyplot as plt; ax = plt.Axes() would I think properly link to any methods in ax such as ax.scatter).

However, sometimes there are objects which have examples in the docs, but are not explicitly imported in those examples. E.g., fig, ax = plt.subplots).

How should we handle these cases?

@Eric89GXL has proposed something like this:

Maybe a compromise would be to parse the non-code for statements in the that contain Sphinx references, like:

  This example makes use of :class:`mne.SourceEstimate`.

Then it’s clean RST format, and should/could link nicely?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
larsonercommented, Jul 30, 2017

@Titan-C any comment on this starting here? This is a feature we still miss.

0reactions
choldgrafcommented, Jul 30, 2017

I agree w/ @Eric89GXL - Matplotlib would also have a huge benefit from improvements along these lines (e.g. SG isn’t detecting any of the methods called on Axes objects that are created with plt.subplots)

Read more comments on GitHub >

github_iconTop Results From Across the Web

QBO Plus - Missing Fields for Customer Importing
QBO Plus - Missing Fields for Customer Importing · Go to the Gear icon and choose Import Data. · Choose Customers. · Click...
Read more >
java.lang.NoClassDefFoundError: Could not initialize class XXX
class PropHolder is a class of my own. The class resides in the same JAR file of the main class. So that should...
Read more >
Resolve missing fonts in desktop applications - Adobe Support
When you open a file that uses fonts which aren't available on your computer, the missing fonts window will show which of those...
Read more >
Generating a path and publishing it - SG Developer
The purpose of this guide is to walk through a basic example of how you can use the API, and by the end,...
Read more >
Participant Import, Update, & Export Messages (EX) - Qualtrics
Select the Participants tab. · Navigate to the Participants section of the Participants tab, if you aren't there already. · Click Tools. ·...
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