import pandas as pd
#from plotly.subplots import make_subplots
import plotly.graph_objs as go
import plotly
# rm_main is a mandatory function,
# the number of arguments has to be the number of
input ports (can be none)
def rm_main():
fig =
plotly.tools.make_subplots(rows=1, cols=2)
fig.add_trace(
go.Scatter(x=[1,
2, 3], y=[4, 5, 6]),
row=1,
col=1
)
fig.add_trace(
go.Scatter(x=[20,
30, 40], y=[50, 60, 70]),
row=1,
col=2
)
fig['layout']['xaxis{}'.format(1)].update({'domain':
[0, 0.49]})
plotly.offline.plot(fig)
This is not creating subplot . Howwver jupyter notebook is creating subplot.
I am using RM 9.2
plotly 3.6.1