8000 Importing matplotlib.animation prevents python script from executing in the background · Issue #13619 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Importing matplotlib.animation prevents python script from executing in the background #13619

@helloworld922

Description

@helloworld922

Bug report

Bug summary

Trying to import matplotlib.animation in a Python script prevents it from executing in the background.
I couldn't get the script to run past just the import, but it would also be nice if I could use the animation module to just generate movie file outputs in the background.

Code for reproduction

Python code:

# my_script.py
import matplotlib.animation

Bash command:

python3 my_script.py &
jobs

Actual outcome

[1]+  Stopped                 python3 input.py

Expected outcome

There should be no extra console output from the jobs command since all jobs should have terminated.

Matplotlib version

  • Operating system: Ubuntu 18.04
  • Matplotlib version: 2.1.1
  • Matplotlib backend: Qt4Agg
  • Python version: 2.7.15rc1 and 3.6.7
  • Jupyter version (if applicable): N/A
  • Other libraries: N/A

matplotlib was installed using apt-get:

sudo apt install python-matplotlib python3-matplotlib

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0