quick start optimization example output problem
This is a bizarre problem. I copy and paste the last example i.e. the optimization one in the QuickStart page!
I made a small modification to the datafeed but the rest are exactly the same.
If I use Visual Studio to run the code, I have got the same console output as shown in the webpage.
But if I use IDLE, my python version is 3.5.2, the code gives me the result something like
There is no output at all. If I write a print function in the name='main', it will print normally.
However, if I don't use the optstrategy but use addstrategy(TestStrategy), the output works find and I can get output.
It seems that the optstrategy hides the print output somehow.
Any help please?
It may be the same root cause as
spyderand other shells which take over the initialization and prevent
multiprocessingfrom working. Some references: