These are chat archives for spyder-ide/public

13th
Jan 2018
restai
@restai
Jan 13 2018 13:20
How can I download the spyder for windows? When I click in the botton "Download Spyder" returns to the initial of the page
Carlos Cordoba
@ccordoba12
Jan 13 2018 15:18
@restai, please go to https://www.anaconda.com/download and install Anaconda, which comes with Spyder
Makarov Andrey
@Winand
Jan 13 2018 21:11
Hello. Is it possible to print output of child processes into IPython console?
from multiprocessing import Pool
import os
import time
import sys


def worker(arg):
    print("#", os.getpid(), flush=True, file=sys.stderr)
    time.sleep(.5)
    return os.getpid()


if __name__ == '__main__':
    __spec__ = None  # FIX multiprocessing.Pool in Spyder IPython console
    pool = Pool()
    for i in pool.imap_unordered(worker, [1, 2, 3, 4, 5, 6, 7, 8, 9]):
        print(i)
it is printed in Windows system console but not in Spyder IPython. (Also i had to force __spec__ to None to make this code work)