question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vaex process stuck in the Spyder IPython console (only)

See original GitHub issue

Issue 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 (or pip, 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:closed
  • Created 2 years ago
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
erwanpcommented, Mar 6, 2022

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

2reactions
maartenbreddelscommented, Oct 18, 2021

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ipython console in Spyder stuck on "connecting to kernel"
I have solved by uninstalling and reinstalling python(x,y) AND deleting related folders (.ipython and .spyder2) in the user folder, but I still ...
Read more >
iPython console gets totally unresponsive when using large ...
iPython console gets totally unresponsive when using large Pandas Dataframe. takes forever, and hangs the console. Ctrl-C does not work and the message...
Read more >
Pandas DataFrame Visualization Tools
This article summarizes options for using a GUI to interactively view and filter pandas DataFrames.
Read more >
Ipython console in the Spyder stuck on "connecting to Kernel"
Phenomenon: Open the Spyder when other normal, but Ipython console can not normally get to kernel, has been spinning, showing "connecting to ...
Read more >
What is the best alternative to Python Pandas in 2021? - Quora
When to use pandas alternatives - Dask, (Py)Spark, Vaex, and Julia and how good ... in processes that would be computationally inefficient to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found