qtconsole

data hiding for python QTconsole

孤街浪徒 提交于 2019-12-07 16:23:34
问题 Currently I am making an image authentication project in which I need to authenticate an image with the help of a key. I am taking the key as a raw_input from the user through the IPython console. I want to hide the key being entered. Expected Result: Enter the key = ***** or Enter the key = (nothing shown) I found getpass() method for hiding the entered data but it gives the following warning on my PC: Warning: QtConsole does not support password mode, the text you type will be visible. I

Error loading ipython qtconsole

萝らか妹 提交于 2019-12-06 05:33:08
问题 I need some advise here. I've installed ipython (sudo pip install ipython[all]) I've python 2.7, mac osx 10.9 64bits. I'm trying to lunch qtconsole camilo-mbp:mvc cami$ ipython qtconsole Traceback (most recent call last): File "/usr/local/bin/ipython", line 8, in <module> load_entry_point('ipython==2.2.0', 'console_scripts', 'ipython')() File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/Library

Clear memory allocated by plotting in IPython

自闭症网瘾萝莉.ら 提交于 2019-12-05 18:16:23
I'm plotting some large plots in IPython QtConsole (and Notebook). These take up a lot of memory, but once they are plotted I don't need them any more and they can go. How can I free up memory? None of the following works: close() clf() cla() %reset The only thing that frees the memory is restarting the kernel , which I don't always want to do (say I worked through a long process to get to a specific point) [To be precise, %reset does free up some memory, but not as much as restarting the kernel]. How to replicate the problem: plot(arange(2e7)) You may need a bigger or a smaller number to

How do I start ipython's qtconsole cleanly on Win7

北战南征 提交于 2019-12-05 16:56:19
I have python 3.4 and ipython 2.3.1 installed on Windows 7. I installed ipython using pip from a wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/ (Thanks, Chris!). This install procedure does not create any start menu shortcuts, even when run as administrator. I can successfully run "ipython qtconsole" from a cmd window, but then I have to have that command window open and the process doesn't fork--it's just and extra window hosting the child process. If I create a shortcut to do the same, it opens a cmd window which then opens the qtconsole. So, how do I start qtconsole without having an

qDebug Qt console application to output to Qt Creator application output

不打扰是莪最后的温柔 提交于 2019-12-04 12:28:31
问题 How do I use qDebug in a Qt console application to output to the Qt Creator "application output" window? Currently qDebug writes to the console window which interferes with the non-debug output. Using qDebug in a Qt GUI app outputs to application output window by default. 回答1: To redirect QDebug to multiple places, you might have to write some code, maybe like this: QList<QtMsgHandler> messageHandlers_; static void messageDispatcher(QtMsgType type, const char *msg) { foreach (QtMsgHandler

Error loading ipython qtconsole

别来无恙 提交于 2019-12-04 10:44:23
I need some advise here. I've installed ipython (sudo pip install ipython[all]) I've python 2.7, mac osx 10.9 64bits. I'm trying to lunch qtconsole camilo-mbp:mvc cami$ ipython qtconsole Traceback (most recent call last): File "/usr/local/bin/ipython", line 8, in <module> load_entry_point('ipython==2.2.0', 'console_scripts', 'ipython')() File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/Library/Python/2.7/site-packages/IPython/config/application.py", line 563, in launch_instance app.initialize(argv)

Start ipython qtconsole as interactive interpreter after script execution

[亡魂溺海] 提交于 2019-12-04 06:19:37
I have ipython with qtconsole installed and can start it via ipython qtconsole . I can also run a script via ipython -i my_script.py to stay in the interactive interpreter after the script finishes or if an exception is thrown. But I could not figure out how to combine them: I would like to do ipython -i qtconsole my_script.py but whatever I try, it complains about invalid flags. Any hint how to do that? Greg Interesting, it seems that either this option was forgotten or not wanted in the qtconsole. A way around this (or perhaps an intended way?) is to use the -m flag. This runs a module as a

qtconsole not rendering pandas dataframes as html notebook_repr_html option

非 Y 不嫁゛ 提交于 2019-12-03 01:02:50
I recently upgraded my version of pandas. I have the latest stable version installed now: pd.__version__ Out[5]: '0.10.1' prior to this upgrade, this is how dataframes were displayed in the qtconsole shell (this isn't my screenshot but simply one i found on the web). The latest version of pandas also uses a different approach to setting the display options. Rather than using pd.set_printoptions , pandas wants you to use the set_option configs like this: pd.set_option('display.notebook_repr_html', True) After upgrading my pandas version, qtconsole no longer renders dataframes as html tables. An

Exceptions in PyQt event loop and ipython

天大地大妈咪最大 提交于 2019-12-02 01:34:47
问题 I have a PyQt program that is displaying some widgets and buttons. I want the program to run either as a standalone python instance, or inside an ipython environment. In this case, I use the following magic command in Jupyter console (formerly I had to use --gui=qt when launching the ipython qtconsole) %pylab qt In order to have a program that works both ways, my main module has the following lines: APP = QtGui.Qapplication.instance() # retrieves the ipython qt application if any if APP is

Exceptions in PyQt event loop and ipython

狂风中的少年 提交于 2019-12-01 21:37:55
I have a PyQt program that is displaying some widgets and buttons. I want the program to run either as a standalone python instance, or inside an ipython environment. In this case, I use the following magic command in Jupyter console (formerly I had to use --gui=qt when launching the ipython qtconsole) %pylab qt In order to have a program that works both ways, my main module has the following lines: APP = QtGui.Qapplication.instance() # retrieves the ipython qt application if any if APP is None: APP = QtGui.QApplication(["foo"]) # create one if standalone execution if __name__=='__main__': APP