Comments (8)
What's you Matplotlib backend?
from qtconsole.
It is Qt4Agg
from qtconsole.
Please disable one of your startup magics, and then the other, to
determine which one is causing this problem.
Sorry for not being more helpful, but I haven't seen this problem before.
El 17/12/15 a las 12:14, Ehsan Azar escribió:
It is |Qt4Agg|
—
Reply to this email directly or view it on GitHub
#76 (comment).
from qtconsole.
It seems sometimes the std output of the startup magic leaks into the input stream after reboot.
When I hit enter when input hangs I got this:
NameError: name 'atplotlib' is not defined
Which is result of trying to execute the console output of:
Using matplotlib backend: Qt4Agg
from qtconsole.
Here is the log file when input hangs:
[JupyterQtConsoleApp] WARNING | kernel restarted
[JupyterQtConsoleApp] execute_input: {u'execution_count': 1, u'code': u'\n\n\n\n'}
[JupyterQtConsoleApp] execute: {u'status': u'ok', u'execution_count': 0, u'user_expressions': {}, u'payload': []}
QTextCursor::setPosition: Position '80967' out of range
QTextCursor::setPosition: Position '80967' out of range
QTextCursor::setPosition: Position '80967' out of range
QTextCursor::setPosition: Position '80967' out of range
[JupyterQtConsoleApp] execute_input: {u'execution_count': 1, u'code': u'\n'}
[JupyterQtConsoleApp] execute: {u'status': u'ok', u'execution_count': 0, u'user_expressions': {}, u'payload': []}
[JupyterQtConsoleApp] Starting kernel: ['/home/dashesy/.virtualenvs/qtconsole/bin/python', '-m', 'ipykernel', '-f', u'/run/user/1000/jupyter/kernel-3011.json']
[JupyterQtConsoleApp] Connecting to: tcp://127.0.0.1:44711
QTextCursor::setPosition: Position '29967' out of range
[JupyterQtConsoleApp] shutdown: {u'status': u'ok', u'restart': True}
[JupyterQtConsoleApp] stream: {u'text': u'Using matplotlib backend: TkAgg\nPopulating the interactive namespace from numpy and matplotlib\n', u'name': u'stdout'}
QTextCursor::setPosition: Position '29993' out of range
-
Every time it hangs I see
QTextCursor::setPosition
after the line aboutstream
-
Only Enter is hanged, I can type:
a. either I have to type a very long character string for buffer to be ready again
b. or I can use Backspace! which deletes the linePopulating the interactive namespace from numpy and matplotlib
but then I can press Enter again
It is reproducible too. I use this script it generates lots of QTextCursor::setPosition
messages, then I restart the kernel (usually twice) fast. This sounds contrived but has the effect of reproducing the error.
from qtconsole.
Ok it is this line that results in QTextCursor::setPosition
warnings:
cursor.setPosition(self._append_before_prompt_pos)
Why it sometimes coincides with in input stream hanging I will try to figure out now
from qtconsole.
Another way to reproduce input hang, without restarting the kernel:
- Run this script for little while
- Run
np?
then hitq
- Try Enter key or arrows, and the input hangs and terminal will have lots of
QTextCursor::setPosition: Position 'X' out of range
warnings
from qtconsole.
We've had recurring problems with those 'Position xyz out of range' warnings followed by input hanging.
from qtconsole.
Related Issues (20)
- qtconsole packaged into .app macOS bundle using py2app
- Crash on PySide6 due to version checking HOT 1
- Catching Ctrl-Z and Ctrl-\
- Question: Removal of ipython_genutils HOT 1
- Values missing from console when running automatically
- AttributeError: 'QtInProcessChannel' object has no attribute 'closed' HOT 2
- How to access objects in my application follow the example qtconsole/examples/inprocess_qtconsole.py? HOT 2
- Qt bindings version outdated in documentation HOT 2
- Matplotlib Qt5Agg backend is given anonymous icon when used with qtconsole on macOS HOT 3
- Weird pytest error: 'CompletionHtml' object has no attribute '_text_edit' HOT 4
- Qtconsole quits when trying to drag in PyQt6 HOT 12
- Segmentation Fault on `jupyter qtconsole` HOT 10
- Stop using `IPythonLexer` from ` IPython.lib.lexers` HOT 3
- TypeError due to wrong spelling in keyword HOT 1
- compute_item_matrix() got an unexpected keyword argument 'displaywidth' HOT 1
- New tab causes crash for --existing kernels
- intersphinx warning HOT 1
- possibly removing `qtconsole` from jupyter metapackage HOT 2
- Horizontal scrolling not updated until wndow resize event HOT 3
- misspelled keyword arg in qtconsole.util.compute_item_matrix HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtconsole.