Skip to content
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

Send custom class attributes to Spyder without requiring the corresponding package to be installed #99

Open
CAM-Gerlach opened this issue Mar 25, 2019 · 0 comments
Labels
type:Enhancement New feature or request

Comments

@CAM-Gerlach
Copy link
Member

Problem Description

Initially discussed in spyder-ide/spyder#8852 .

The object explorer, either the one implemented in spyder-ide/spyder#8852 or the existing one based on the dictionary collections editor, does not work if the package the object's class is from is not installed, which is common under our recommended workflow of keeping Spyder in a separate environment from the working environment packages (especially important if their deps are incompatible with Spyder, or they could contaminate Spyder's environment with pip or conda-forge).

Therefore, we should provide a mechanism to at least read the object's attributes in this case. @ccordoba12 suggested:

I've been thinking about it and this is out of the scope of this PR. To solve it we need to create a pure text, json representation of an object in the kernel and send it to Spyder to display it in this new object editor. So, please open a new issue about it in spyder-kernels.

What steps reproduce the problem?

  1. Open Spyder from a dedicated/base environment
  2. Launch a kernel in a different environment with a package that provides custom classes
  3. Instantiate an object of said custom class and attempt to view it in the Variable Explorer

What is the expected output? What do you see instead?

Expected: Being able to at least view the object in dict form.

Actual: An error message is produced, stating the package containing the class is not installed.

@CAM-Gerlach CAM-Gerlach added the type:Enhancement New feature or request label Mar 25, 2019
@CAM-Gerlach CAM-Gerlach added this to the future milestone Mar 25, 2019
@goanpeca goanpeca removed this from the future milestone Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants