Vaex process stuck in the Spyder IPython console (only)
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
(fixed the problem with inline graphics, see below) - Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Spyder IPython console process becomes stuck when computing a mean with vaex. Does not happen with other IDEs / Consoles. Somehow, it may be related to the output graphics mode of the Spyder iPython console (see below)
What steps reproduce the problem?
Minimal error :
import numpy as np
import vaex
df = vaex.from_dict({"E":np.random.rand(1000)})
print(df)
print("before EQ mean")
E_bins = df.mean("E", binby="E", shape=10)
print("after EQ mean") # 👈 I never get to here
Script works well if
- ran from an Ipython ( 7.22.0) console in the terminal
- ran from Python in the terminal
- ran from VS Code
- ran from Jupyter Lab (3.0.14)
- ran in Jupyter QtConsole
As pointed out by @minouHub , opening a new Spyder IPython console unlocks the process. If console has been “unlocked”, I can even re-run the script another time before it gets stuck again. (?)
Last thing : although no graphics are plot anywhere in this example, this problem appears when my iPython console has Qt5 output graphics. It does not appear with Inline graphics (tried both consistently 3 times)
Versions
spyder
spyder-kernels 2.0.5 py38haa95532_0 ipython 7.22.0 py38hd4e2768_0
on Windows.
Spyder installed through Anaconda
- Spyder version: 5.0.5 py38haa95532_2
- Python version: 3.8.8
- Qt version: 5.9.7 vc14h73c81de_0
- PyQt version: 1.9.0
- Operating System name/version: Windows 10
Issue Analytics
- State:
- Created 2 years ago
- Comments:29 (13 by maintainers)
Top GitHub Comments
Tested right now ; everything works properly with Vaex 4.8
Vaex 4.8 is officially released so we can consider this issue fixed.
Thank you @maartenbreddels @ccordoba12
If you install the latest alpha, you can try this trick https://github.com/vaexio/vaex/pull/1546#issuecomment-935535045 to see if it does not get stuck (that might tell you that nest_asyncio is the problem).