temp = fit.extract(permuted=False, inc_warmup=True)
%%R -i temp
require('shinystan')
temp <- as.shinystan(temp, burnin = 1000)
temp <- launch_shinystan(temp)
from rpy2.robjects.packages import importr
shinystan = importr('shinystan')
temp = fit.extract(permuted=False, inc_warmup=True)
sso = shinystan.as_shinystan(temp)
NotImplementedError: Conversion 'py2ri' not defined for objects of type '<class 'numpy.ndarray'>'
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
shinystan = importr('shinystan')
temp = fit.extract(permuted=False, inc_warmup=True)
sso = shinystan.as_shinystan(temp)
shinystan.launch_shinystan(sso)
In the future we hope to have a version of ShinyStan running entirely on the web but there's still a lot of work to be done on that.
Jonah