import pandas as pd
= pd.Series([0,1,2,3])
my_variable = pd.DataFrame(my_variable)) # this works
ojs_define(my_variable = my_variable.tolist()) # this works
ojs_define(my_variable2 # ojs_define(my_variable = my_variable) # this doesn't
See src and this Issue
my_variable