Skip to content

Conversation

@ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Nov 2, 2025

Description of Changes

  • For that to work we need to add paths handled by the Pythonpath manager to Spyder's internal sys.path.
  • Add regression test for this so it doesn't break in the future.

Visual changes

Add note to explain users what to do if Spyder reports it's unable to show their own objects.

image

Issue(s) Resolved

Fixes #15998.

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

This is necessary to make inspection of local classes work in the
Variable Explorer.
This is necessary for modules not available in the cwd.
@ccordoba12 ccordoba12 added this to the v6.1.1 milestone Nov 2, 2025
@ccordoba12 ccordoba12 self-assigned this Nov 2, 2025
@ccordoba12 ccordoba12 removed the request for review from jitseniesen November 2, 2025 18:32
@ccordoba12 ccordoba12 changed the title PR: Add workaround to allow users to view their class instances and other objects in the Variable Explorer PR: Add workaround to allow users to view their own class instances and other objects in the Variable Explorer Nov 2, 2025
@ccordoba12
Copy link
Member Author

@jitseniesen, could you review this one? I'd like to know what you think.

You can find a test file for this in spyder/app/tests/own_class/script/script.py after checking out this PR.

@jitseniesen
Copy link
Member

Sure, I'll have a look.

@ccordoba12 ccordoba12 modified the milestones: v6.1.1, v6.1.2 Nov 10, 2025
@ccordoba12 ccordoba12 modified the milestones: v6.1.2, v6.1.3 Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retrieving the value of a variable in the Variable Explorer depends on how a module is imported

2 participants