Using Spyder2 with Python 3.5 on a Macintosh, I'm having trouble with Tk. Specifically I'm trying to use Tk to generate a open file dialog. Here is what I type:
import tkinter as tk
from tkinter.filedialog import askopenfilename
root = tk.Tk()
At this point, everything freezes. I get a little spinning icon and I have to force quit. This all works (and more) from a separate ipython console but either typed interactively or run from a file within spyder, it causes spyder to freeze up.
Any idea of how to fix this? I should mention I'm using the Anaconda installed version of Spyder2.
Many thanks,
Eric