Skip to content

pyplot not working in ipython #80147

@btlvr

Description

@btlvr

I'm using NixOS 19.09, and I'm unable to use pyplot from within ipython. It works in a normal Python interpreter.

λ python3.7
Python 3.7.5 (default, Oct 14 2019, 23:08:55) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> quit()
λ 
λ ipython3
Python 3.7.5 (default, Oct 14 2019, 23:08:55) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib.pyplot as plt                                                                                                                                                                 

In [2]: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""                                                                                                                                
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: abort (core dumped)  ipython3
λ    

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.6.topic: qt/kdeObject-oriented framework for GUI creation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions