python-idle

NumPy in IDLE (Python 3.3.2) on Mac OSx 10.8

蓝咒 提交于 2019-12-02 13:13:38
问题 I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can

idle-python3.2 not starting: complains of NameError: name 'Tk' is not defined

一世执手 提交于 2019-12-02 11:31:57
running linux mint 13 idle-python3.2 did work from the terminal before, now it does not. Calling idle-python3.2 from the terminal throws the error below BUT I can run Idle by double clicking on the script! Here's the very simple script that broke it all(?) http://pastebin.com/pP9An3UU FWIW, the script does not appear to work either (nothing happens when I run it). Here's the error in the terminal when trying to run Idle3.2 from the terminal: File "tkinter.py", line 2, in <module> tk = Tk() NameError: name 'Tk' is not defined here's the full error http://pastebin.com/J5AfAQyV I know tkinter is

python 3 IDLE progressbar/loadingbar

会有一股神秘感。 提交于 2019-12-02 11:29:33
问题 I am using the standard IDE that comes with python3. I would like to make use of the backspace function (\b) within the ILE in order to create a NICE LOOKING progressbar. Even a simple percentage counter requires the backspace function. When I run the script I get a wonderfully useless symbol instead of a backspace. Questions: How can I use \b in the IDE How else can I make a progress bar that would use something similar to a backspace (in other words, I don't want a lame eg: loading:########

How to write and run more than one code in Python IDLE?

ε祈祈猫儿з 提交于 2019-12-02 09:46:16
问题 How do you get that code, see below, run in IDLE? I am stuck in my course right now and I could not find an explanation. I know how to run in IDLE just one "def" or code, pressing F5, write e.g. hash_string('udacity', 3) in the shell, "Enter", result. In that code, with more than one code it will not work, of course. For a deeper understanding I want to run it in the Python Online Tutor, condition is that it will work in IDLE or vice versa. Further I would like to know, why the input #print

Import module works in Jupyter notebook but not in IDLE

核能气质少年 提交于 2019-12-02 09:26:58
问题 I don’t understand what I’m doing wrong. I re-installed my windows last week; after that I got python (3.6), and all the libraries I need, but when I try to import them in the IDLE returns an error (ModuleNotFoundError: No module named……), and when I check in the command window with “pip list” or “conda list”, the package is already there. The strange thing is when I tried to import them from a Jupyter notebook worked without any problem. I’m working with a laptop Windows 7, 64 bits. No

mysql connection timeout, inactivity

…衆ロ難τιáo~ 提交于 2019-12-02 09:08:17
I have MySQL server installed and I would like it to stop dropping inactive connections. Which option do I need to adjust? The MySQL server is installed on a Windows machine. Thanks You are looking for the MySQL wait_timeout variable . SET @@GLOBAL.wait_timeout=2147483 来源: https://stackoverflow.com/questions/9488390/mysql-connection-timeout-inactivity

Import module works in Jupyter notebook but not in IDLE

孤者浪人 提交于 2019-12-02 07:29:43
I don’t understand what I’m doing wrong. I re-installed my windows last week; after that I got python (3.6), and all the libraries I need, but when I try to import them in the IDLE returns an error (ModuleNotFoundError: No module named……), and when I check in the command window with “pip list” or “conda list”, the package is already there. The strange thing is when I tried to import them from a Jupyter notebook worked without any problem. I’m working with a laptop Windows 7, 64 bits. No previous version of python was installed before. I am having issues with scikit-learn, pandas-datareader and

setting up numpy/scipy in idle

为君一笑 提交于 2019-12-02 07:22:54
I would like to use numpy in a python program I am creating, but I can not figure out how to use it inside of IDLE. The download page for numpy redirects to the one for Scipy, which is fine, infact I would like to download the rest of Scipy as well (especially matPlotLib), but it isn't as important to me as numpy, but the scipy download page tells you to get it from even larger packages, none of which I can figure out how to use in IDLE. Note that I use the python 2.x series, and I also use other installed packages in the same program such as pygame, and wxpython. Thank you so much. As the

NumPy in IDLE (Python 3.3.2) on Mac OSx 10.8

血红的双手。 提交于 2019-12-02 06:58:26
I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can anyone point me to instructions for BEGINNERS on this installation? For example, most start with a

python 3 IDLE progressbar/loadingbar

丶灬走出姿态 提交于 2019-12-02 05:47:09
I am using the standard IDE that comes with python3. I would like to make use of the backspace function (\b) within the ILE in order to create a NICE LOOKING progressbar. Even a simple percentage counter requires the backspace function. When I run the script I get a wonderfully useless symbol instead of a backspace. Questions: How can I use \b in the IDE How else can I make a progress bar that would use something similar to a backspace (in other words, I don't want a lame eg: loading:########################## I've read threads on this and the best solution I've heard involves actually re