Skip to content

Qtbindings clipboard conflict #17722

Closed
@dvincentwest

Description

@dvincentwest

In the clipboard package, I see pandas is using pyperclip

the problem is that pyperclip uses PyQt4 when deciding to use Qt for the linux clipboard, which can create a conflict if trying to embed pandas into a PyQt5 or PySide application for example

I think the simplest solution is to use qtpy from the Spyder team, so replace:

from PyQt4.QtGui import QApplication

with

from qtpy.QtWidgets import QApplication

I am currently working on a PyQt5 based pandas data visualization program and this is a problem I have encountered in the past.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions