mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.06k stars 75 forks source link

bokeh.embed.components get stuck in PyCall.without_gvl block #92

Open mrkn opened 5 years ago

mrkn commented 5 years ago

bokeh.embed.components() function cannot use in PyCall.without_gvl block.

require 'pycall'

plotting = PyCall.import_module('bokeh.plotting')
embed = PyCall.import_module('bokeh.embed')
plot = plotting.figure()
plot.circle([1, 2], [3, 4])

PyCall.without_gvl do
  components = embed.components(plot)  ## <--- freeze here
  p components
end

This issue is the successor of #85.