mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Do not generate output for empty figures in Qt console.
Before, calling figure() would produce a big blank area. This ensures output is only returned if the figure has content. Also added basic testing for pylabtools, for which we had none.
This commit is contained in:
parent
131086119a
commit
a6ebd33613
@ -101,11 +101,12 @@ def test_for(mod, min_version=None):
|
||||
have = {}
|
||||
|
||||
have['curses'] = test_for('_curses')
|
||||
have['matplotlib'] = test_for('matplotlib')
|
||||
have['pexpect'] = test_for('pexpect')
|
||||
have['pymongo'] = test_for('pymongo')
|
||||
have['wx'] = test_for('wx')
|
||||
have['wx.aui'] = test_for('wx.aui')
|
||||
have['pexpect'] = test_for('pexpect')
|
||||
have['zmq'] = test_for('zmq', '2.1.4')
|
||||
have['pymongo'] = test_for('pymongo')
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Functions and classes
|
||||
@ -191,6 +192,11 @@ def make_exclude():
|
||||
if not have['pymongo']:
|
||||
exclusions.append(ipjoin('parallel', 'controller', 'mongodb'))
|
||||
|
||||
if not have['matplotlib']:
|
||||
exclusions.extend([ipjoin('lib', 'pylabtools'),
|
||||
ipjoin('lib', 'pylabtools',
|
||||
'tests', 'test_pylabtools')])
|
||||
|
||||
# This is needed for the reg-exp to match on win32 in the ipdoctest plugin.
|
||||
if sys.platform == 'win32':
|
||||
exclusions = [s.replace('\\','\\\\') for s in exclusions]
|
||||
|
Loading…
Reference in New Issue
Block a user