-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Images are not rendered by the Help pane on Windows #2465
Comments
@blink1073 did you look at this at some point if I am not mistaken? |
I think this is solved in master, and @blink1073 did it :-) |
Does someone know the commit or the pull request? Perhaps I can apply that to my local spyder version. |
@ufechner7, https://bitbucket.org/spyder-ide/spyderlib/pull-request/12/add-ability-to-re-trigger-docstring-while/diff. If using absolute paths, they must must be URIs, in this case: file:///path/to/picture.png. See http://en.wikipedia.org/wiki/File_URI_scheme. |
@ccordoba12 I tried the master branch, but images are still missing. |
I can add that the problem is not with the path. When the image is found (left case), the bounding box is displayed without the content but with the file name in it, without extension. If it is not found (right case), a default placeholder appears. |
Known image size means the script can see an image when generating the html.
My second problem was in the way I set the relative path to the images in reST: "folder_name/image_name.png" If you take a look inside"fix_image_paths.js", you will notice that the folder name is simply ignored:
So, I modified it slightly:
Now all my images are visible in the inspector. |
I just checked on Linux, everything works for me: image with no path, relative path, absolute path. |
I'm going to test this on Windows before closing ;-) |
Simple example:
Save this code in a file like test.py. Save any small picture in as picture.png in the same folder.
Put the cursor in front of the class name "test" and press < ctrl >< i >.
The object inspector displays:
class test(object)
diagram
and an empty box instead of the picture.
This should be fixed. I like the object inspector, and I like to add diagrams to some of my methods and classes to explain how they work.
The text was updated successfully, but these errors were encountered: