Missing gtk4 loop integration

Open
#1,148 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter, matplotlib, python

Research direction

Start at the jupyter console GUI request handling and compare the existing gtk, gtk3, and asyncio integrations listed in the error. Reproduce the gtk4agg plot failure, then verify that a gtk4 request is accepted and the plot displays without the invalid-GUI error.

Written by the indexing model from the issue text.

Description

In jupyter console, trying to show a gtk4agg matplotlib plot raises

UsageError: Invalid GUI request 'gtk4', valid ones are:dict_keys(['inline', 'nbagg', 'webagg', 'notebook', 'ipympl', 'widget', None, 'qt', 'qt5', 'qt6', 'wx', 'tk', 'gtk', 'gtk3', 'osx', 'asyncio'])

(Also, I note that both gtk and gtk3 are deprecated since #1036, is there a reason why? -- gtk (if that means the old gtkagg backend(?)) can probably be removed wholesale as that's Py2-only, but gtk3 should still work.)

Dominant language
Python
Stars
734
Forks
411
Avg merge
1d 2h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipython/ipykernel

All issues in ipython/ipykernel

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.