These are chat archives for ipython/ipython

12th
Sep 2017
Taven
@daegontaven
Sep 12 2017 03:03
Hey guys, can someone explain in simple terms how you guys managed to allow fast appends of text to a QTextEdit in qtonsole without it freezing ? I'm looking at this https://github.com/jupyter/qtconsole/blame/master/qtconsole/console_widget.py and I can't seem to make heads or tails.
I see you implemented a buffer, but what kind of buffer is also another question.
Taven
@daegontaven
Sep 12 2017 04:48
Is there a reason you guys are checking how long it takes it to insert the text as show here ? https://github.com/jupyter/qtconsole/blob/fcaa2908bacfc27537805967da0a558251585a05/qtconsole/console_widget.py#L1531-L1535
DanielPower
@DanielPower
Sep 12 2017 18:08
Hi, I'm using IPython with Jupyter Notebooks. When I started using it a few days ago, %pycat would print the contents of a file to the page. Now executing %pycat pops up a pane at the bottom of my browser containing the output. I'm not sure if I did something to cause this change in behaviour, but I need to go back to the original behaviour. Is this possible?
To be more specific, the original behaviour would print the contents of the file underneath the code block containing %pycat 'somefile'
DanielPower
@DanielPower
Sep 12 2017 18:13
DanielPower
@DanielPower
Sep 12 2017 18:21
Nevermind, it had to do with some extra code my prof put in the topmost code block. I needed to have page.page = print. Not sure what exactly that does, but it fixed the issue