Questions tagged [qtconsole]

QTConsole is a very lightweight widget that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multiline editing with syntax highlighting, graphical calltips, and much more.

QTConsole is a very lightweight widget that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multiline editing with syntax highlighting, graphical calltips, and much more.

More info: A Qt Console for IPython

105 questions
0
votes
0 answers

Make spyder to use inprocess kernels

Is there a way to tell spyder (or maybe at least jupyter) to run inprocess kernels like you can do with qtconsole? I am trying to use spyder from a different program and update namespace to work with large arrays (several GB +) and qtpy widgets. I…
Serg Che
  • 1
  • 1
0
votes
0 answers

Calling %history from python runtime outside of qtconsole

My desired outcome is to get, similar to what is possible in qtconsole, this type of output: %hist import pandas as pd pd.DataFrame() But for code run in the python runtime. I have explored inspect, pdb and traceback but they do not give the clean…
jason m
  • 6,519
  • 20
  • 69
  • 122
0
votes
1 answer

Where does Jupyter QtConsole save its past commands

If I close an instance of Jupyter QtConsole, and open a new instance, hit the Up key. Then the previous command I last ran is loaded. In which directory is the past command history saved? I've looked through the source on Github but haven't managed…
simonzack
  • 19,729
  • 13
  • 73
  • 118
0
votes
1 answer

Can't install "line_profiler" with pip in Qt Console

When I tried to install "line_profiler" in QTconsole using !pip install line_profiler But it failed as saying, "Failed building wheel for line-profiler". I do not know why this happened. Is there any way to successfully install "line_profiler" in…
0
votes
1 answer

Create jupyter qtconsole shortcut installed on virtualenv on windows [7]

This is how I am currently doing and is working fine. C:\Users\me> dev\Scripts\activate (dev) C:\Users\me> jupyter qtconsole --style monokai I tried saving the above commands to .bat and double clicking the same. The prompt opens and close. I even…
Rahul
  • 10,830
  • 4
  • 53
  • 88
0
votes
0 answers

ipython qtconsole --colors=linux doesnt work

I launched qtconsole using: ipython qtconsole --colors=linux on my windows 8.1 machine. Yet the background colour is still eye retina burning white. So are all the tabs I open within. I have the following versions installed: Jupyter QtConsole…
codingknob
  • 11,108
  • 25
  • 89
  • 126
0
votes
1 answer

jupyter qtconsole, matplotlib: scale displayed image to window width

I'd like to scale images that I display in jupyter qtconsole to window width. All images are shown just in the size of 5x5cm, nevertheless how large they really are. Tried that with a 1k by 1k image and a 7,7k by 7,7k image. Shows the same. I don't…
camaro
  • 118
  • 12
0
votes
0 answers

How to configure Ipython to automatically revert back to the directory it was opened in after running a script, even if the script errors out

End goal: After running a script regardless of ending perfectly or erroring out, I would like to have my ipython environment revert back to the directory it was in before running the script. I have successfully used the advice given in the SO…
Kyle Swanson
  • 1,308
  • 1
  • 12
  • 20
0
votes
2 answers

Use plain text Widget for Spyder's IPython Console

I'm able to set Jupyter's QtConsole to use a plaintext widget instead of rich text by setting this c.JupyterQtConsoleApp.plain = True in the configuration file ~/.jupyter/jupyter_qtconsole_config.py Spyder's IPython Console does not seem to respect…
mrclary
  • 489
  • 3
  • 16
0
votes
1 answer

Why do pint Quantities display differently in QtConsole than in an iPython console and how do I change it?

So, I use the pint units package and would like values displayed in the console to be standard fixed width font, not a 'rendered' display. I use Spyder IDE which uses QtConsole and displays either html or latex png. The following screen shots…
mrclary
  • 489
  • 3
  • 16
0
votes
1 answer

PyQt4 : making certain text on QTextEdit uneditable

Is there any way I can make certain text on QTextEdit permanent. Applications like cmd.exe where the current user directory is displayed and the rest of the screen is up for input. I tried inserting a QLabel but unable to do so, here's my code, I am…
user6911598
0
votes
1 answer

How to change monokai pygments style in qtconsole with jupyter

How does one change monokai pygments style such that errors are printed in lighter colours in jupyter qtconsole when using python? See the attached screenshot and especially notice how the error type (AttributeError) is in darkish red, function…
Marcel Liker
  • 93
  • 1
  • 9
0
votes
1 answer

How do I change the highlight color style of the code in the IPython(Jupyter)?

My question is showed in the following picutre. I want to change the highlight color style of the code region that is specified by the red rectangle in the picutre below. But I dont' know which token I should change style of. My pygment style…
Yantao Xie
  • 12,300
  • 15
  • 49
  • 79
0
votes
1 answer

increase number of columns in window using jupyter qtconsole in python

I have a QtConsole running. Whenever I output a matrix (for example) that has many columns, QtConsole wraps the matrix to the next line. However, the break point is only halfway through my window.. lots of wasted blank space. How can I make…
Alex
  • 19,533
  • 37
  • 126
  • 195
0
votes
1 answer

How to change ipython qtconsole input

I'm making a guide with pyqt and I'm including an ipython qtconsole widget. try: from qtconsole.rich_jupyter_widget import RichJupyterWidget as ipythonWidget from qtconsole.inprocess import QtInProcessKernelManager except: from…
Felipe Sierra
  • 143
  • 2
  • 12