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() p.step(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() p.scatter(df) p.show()
def test_dict(self): with patch('lantern.plotting.plot_matplotlib.in_ipynb', create=True) as mock1: import lantern as l mock1.return_value = True df = l.bar() l.plot(df, {c: 'line' for c in df.columns}, 'matplotlib')
def test_list(self): with patch('lantern.plotting.plot_matplotlib.in_ipynb', create=True) as mock1: import lantern as l mock1.return_value = True df = l.bar() l.plot(df, ['line' for _ in df], 'matplotlib')
def test_grid(self): import lantern as l df = l.bar() l.grid(df, 'plotly')
def test_grid(self): import lantern as l df = l.bar() l.grid(df, 'qgrid')