'IOStream.flush timed out: What does it mean?

I get the following message in my console while I am running some code.

The code is still running so I am not sure if this is an error or not.

After a while the code stop to run and it seems that I get the output as I want it but now is difficult for me to understand if it gave any issues or not.

Any idea?

I understand it has something to do with memory but I cannot find a definition of it.

In [4]: daily_transactions, transactions = strategy_transactions(price = price_data, 
                                                         timeframe = 'W-SUN',
                                                         f_strategy = MACD_XOVER)

Output from spyder call 'get_namespace_view':
IOStream.flush timed out
IOStream.flush timed out
IOStream.flush timed out



Solution 1:[1]

I don't know what the problem is but I managed to go around it by saving the important data beforehand and reseting kernel in a loop.

Basically, every after any N number of iterations in a loop, I save the important and relevant data, reset the kernel, import the required libraries and then load the relevant data.

I understand that this is not an optimal way of solving the problem, but I did the trick for me.

The reset code on python through jupyter notebook is:

%reset -f

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 OliverM98