replace view.apply_with_flags() with view.apply()
replace view.apply_with_flags() with view.apply()

For a BalancedView called `viewview.apply_with_flags() doesn't seem to exist. 
I presume view.apply() was intended?
ipython/ipython,ipython/ipython