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

Consoles connected to external ipykernels break Plots and the Variable Explorer #15921

Closed
impact27 opened this issue Jun 23, 2021 · 2 comments · Fixed by #15922
Closed

Consoles connected to external ipykernels break Plots and the Variable Explorer #15921

impact27 opened this issue Jun 23, 2021 · 2 comments · Fixed by #15922

Comments

@impact27
Copy link
Contributor

impact27 commented Jun 23, 2021

Problem Description

When switching to an external ipykernel, the plugins do not update correctly.

For example, the variable explorer would show the namespace of the previous console instead of the current one

I know that the variable explorer is not expected to work for ipykernels, but it should not show the content of another console.

What steps reproduce the problem?

  1. In a terminal: python -m ipykernel
  2. Open spyder with one console named "Console 1"
  3. Console > Connect to existing console > paste the kernel number (kernel-XXXX.json)
  4. A new console (Console 2) opens
  5. Go to console one, type a = 1
  6. Open the variable explorer and see that a is 1
  7. Go to Console 2 (The external one)
  8. The variable explorer hasn't changed, even though a is not defined

The same problem happens for the plot

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

I would expect to see an empty variable explorer (Or plot plugin). Instead I see the data from the previous console I visited.
(Of course the best case would be if the system works with ipkernels)

Versions

  • Spyder version: dev
  • Python version: 3.8.5
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
@dalthviz
Copy link
Member

Thanks for the feedback @impact27 !

Pinging @ccordoba12 just in case

@ccordoba12 ccordoba12 changed the title External ipykernel break the plugins Consoles connected to external ipykernels break Plots and the Variable Explorer Jun 23, 2021
@ccordoba12
Copy link
Member

I agree with @impact27 that this is a very odd UX problem and we need to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants