question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy text misses last highlighted character in IPython console

See original GitHub issue

Description

Copying highlighted text from the iPython console fails to capture last highlighted character.

What steps will reproduce the problem?

  1. Copy text from Spyder iPython console using keyboard shortcut or context menu.
  2. Paste into editor or another program.
  3. Note the last character is missing.

What is the expected output? What do you see instead?

I would expect all the text to be copied.

Please provide any additional information below

Copy (Raw Text) does not have this issue.

Version and main components

  • Spyder Version: 2.3.6
  • Python Version: 2.7.10
  • Qt Versions: 4.8.6, PyQt4 (API v2) 4.11.3 on Darwin

Optional dependencies

pyflakes >=0.5.0:  1.0.0 (OK)
pep8 >=0.6      :  1.6.2 (OK)
pygments >=1.6  :  2.0.2 (OK)
IPython >=1.0   :  4.0.0 (OK)
zmq >=2.1.11    :  14.7.0 (OK)
qtconsole >=4.0 :  4.0.1 (OK)
pandas >=0.13.1 :  0.16.2 (OK)
sphinx >=0.6.6  :  1.3.1 (OK)
psutil >=0.3    :  3.2.1 (OK)
rope >=0.9.2    :  0.9.4 (OK)
jedi >=0.8.1    :  0.8.1 (OK)
matplotlib >=1.0:  1.4.3 (OK)
sympy >=0.7.3   :  0.7.6.1 (OK)
pylint >=0.25   :  None (NOK)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjcameroncommented, Nov 16, 2015

This issue is indeed resolved with the last update.

0reactions
stonebigcommented, Mar 12, 2016

yes, I was on qtconsole 4.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - syntax highlighting in ipython console - Stack Overflow
In ipython-qtconsole , when I type import pandas as pd the words have syntax highlighting. However, when I type in the console, all...
Read more >
Best Python Jupyter-Notebook Tricks - Towards Data Science
4 Time-Saving Python Tricks in Jupyter-Notebook. Write code faster using Find and Replace, Copy and Paste and Much More.
Read more >
Python Tutorial - File and Text Processing
File Input/Output. File Input/Ouput (IO) requires 3 steps: Open the file for read or write or both. Read/Write data. Close the file to...
Read more >
IPython shortcuts — IPython 6.5.0 documentation
Single Filtered shortcuts¶ ; <PageUp>, (Not: HasSelection), Move back through the history list, fetching the previous command ; <Bracketed-Paste>, Always, Pasting ...
Read more >
How often do people actually copy and paste from Stack ...
In the case of our recent April Fools gag, it might be more like an ... We were able to catalog every copy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found