def test_step(self): with patch('lantern.plotting.plot_matplotlib.in_ipynb', create=True) as mock1: import lantern as l mock1.return_value = True p = l.figure('matplotlib') df = l.bar.sample() p.step(df) p.show()
def test_area(self): with patch('lantern.plotting.plot_matplotlib.in_ipynb', create=True) as mock1: import lantern as l mock1.return_value = True p = l.figure('cufflinks') df = l.bar() p.area(df) p.show()
def test_step(self): with patch('lantern.plotting.plot_plotly.in_ipynb', create=True) as mock1: import cufflinks cufflinks.go_offline() import lantern as l mock1.return_value = True p = l.figure('cufflinks') df = l.bar() p.step(df) p.show()
def test_scatter(self): with patch('lantern.plotting.plot_bokeh.in_ipynb', create=True) as mock1: from bokeh.plotting import output_notebook output_notebook() import lantern as l mock1.return_value = True p = l.figure('bokeh') df = l.bar.sample() p.scatter(df) p.show()