##// END OF EJS Templates
Don't register the same callabck multiple times...
Don't register the same callabck multiple times Using the %matplotlib magics would not always work without this fix: For `%matplotlib qt5` to work, `flush_figures` should not be in `get_ipython().events.callbacks['post_execute']`. Yet without this fix: ```python Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 7.18.1 -- An enhanced Interactive Python. In [1]: %matplotlib inline In [2]: %matplotlib inline In [3]: %matplotlib inline In [4]: %matplotlib inline In [5]: get_ipython().events.callbacks['post_execute'] Out[5]: [<bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x00000199BFE73888>>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function matplotlib.pyplot.install_repl_displayhook.<locals>.post_execute()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>] In [6]: %matplotlib qt5 In [7]: get_ipython().events.callbacks['post_execute'] Out[7]: [<bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x00000199BFE73888>>, <function matplotlib.pyplot.install_repl_displayhook.<locals>.post_execute()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>] In [8]: ```

File last commit:

r25839:98bb6cc0
r26114:73ca78ca
Show More
appveyor.yml
31 lines | 765 B | text/x-yaml | YamlLexer
build: false
matrix:
fast_finish: true # immediately finish build once one of the jobs fails.
environment:
matrix:
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "64"
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "%CMD_IN_ENV% python -m pip install --upgrade setuptools pip"
- "%CMD_IN_ENV% pip install nose coverage"
- "%CMD_IN_ENV% pip install .[test]"
- "%CMD_IN_ENV% mkdir results"
- "%CMD_IN_ENV% cd results"
test_script:
- "%CMD_IN_ENV% iptest --coverage xml"