-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyplot not working in ipython #80147
Comments
How did you bring |
Strangely enough, I'm getting the exact same problem in standard CPython interpreter, so it's probably not an issue in ipython.
Here I'm on nixos 20.03 (ceb90b0). |
Just a small heads-up: use the matplotlib TK backend in the meantime, it is sleek and works. |
I think matplotlib should propagate the wrap Qt hook when Qt is included in matplotlib. In Python's |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
It's still an open problem. |
Is there a recommended workaround for QT support in matplotlib? |
I had a working proposal that could have made it into 20.09, but it has been scrapped in favour of more complex solution (#102949), which seems stalled :(. If you really need this to work, try creating a let
pkgs = import <nixpkgs> { };
matplotlib = pkgs.python3Packages.matplotlib.override { enableQt = true; };
in
pkgs.mkShell {
buildInputs = [ matplotlib ];
QT_PLUGIN_PATH = with pkgs.qt5; "${qtbase}/${qtbase.qtPluginPrefix}";
shellHook = "python -i";
} |
I marked this as stale due to inactivity. → More info |
Still an issue |
See also #236770 |
I'm using NixOS 19.09, and I'm unable to use pyplot from within
ipython
. It works in a normal Python interpreter.The text was updated successfully, but these errors were encountered: