GithubHelp home page GithubHelp logo

Comments (8)

ccordoba12 avatar ccordoba12 commented on May 26, 2024

What's you Matplotlib backend?

from qtconsole.

dashesy avatar dashesy commented on May 26, 2024

It is Qt4Agg

from qtconsole.

ccordoba12 avatar ccordoba12 commented on May 26, 2024

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.

dashesy avatar dashesy commented on May 26, 2024

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.

dashesy avatar dashesy commented on May 26, 2024

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
  1. Every time it hangs I see QTextCursor::setPosition after the line about stream

  2. 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 line Populating 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.

dashesy avatar dashesy commented on May 26, 2024

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.

dashesy avatar dashesy commented on May 26, 2024

Another way to reproduce input hang, without restarting the kernel:

  1. Run this script for little while
  2. Run np? then hit q
  3. 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.

takluyver avatar takluyver commented on May 26, 2024

We've had recurring problems with those 'Position xyz out of range' warnings followed by input hanging.

from qtconsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.