New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source file not found for magics #1799
Comments
The problem is that these magics are now created via a decorator, and we need to introspect into that in order to find the source file. |
If the decorator sets the |
Yup, that's what we need to do. Haven't had the chance to write the code yet, so feel free to beat me to the punch :) |
I don't seem to be able to reproduce this. :( |
@bfroehle, what do you get if you type
and that's the problem. It should be able to find it... |
@fperez: Aha, yes, it says "No source code available." But
|
Ah, ok, I do see that as well. But #1845 fixes everything to show the correct path (plus refactoring old code and adding tests). |
Fixes to inspection machinery for magics Now that magics are generated via decorators, the inspection machinery wasn't finding data about them such as source code. Fixes that along with some refactoring, cleanup and test additions. Closes ipythongh-1799.
After the refactoring of the magics, the display of their source files stopped working:
The text was updated successfully, but these errors were encountered: