Closed sieste closed 3 years ago
I'd like to use plotly (or some other interactive plotting library) for exploratory data analysis in inim. I can do this to create a simple plot
inim
import plotly var tr = Trace[float](xs: @[1.0, 2.0], ys: @[1.0, 2.0]) var pl = Plot[float](traces: @[tr]) pl.show()
import plotly
var tr = Trace[float](xs: @[1.0, 2.0], ys: @[1.0, 2.0])
var pl = Plot[float](traces: @[tr])
pl.show()
The plot opens in a new browser tab. After that, every time I run another command in inim, for example
var x = @[1,2,3]
the command pl.show() seems to be re-executed, opening yet a new browser tab. Is there any way to avoid this behaviour?
It might easier to use Jupyter and nim_magic for EDA https://github.com/apahl/nim_magic
Yeah, def go for Jupyter, really good workflow there :ok_hand:
I'd like to use plotly (or some other interactive plotting library) for exploratory data analysis in
inim
. I can do this to create a simple plotimport plotly
var tr = Trace[float](xs: @[1.0, 2.0], ys: @[1.0, 2.0])
var pl = Plot[float](traces: @[tr])
pl.show()
The plot opens in a new browser tab. After that, every time I run another command in inim, for example
var x = @[1,2,3]
the command
pl.show()
seems to be re-executed, opening yet a new browser tab. Is there any way to avoid this behaviour?