Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IRuby integration is broken #18

Closed
Closed
@mrkn

Description

@mrkn

Using with matplotlib 3.6.0, the following error occurs in Matplotlib::IRuby.activate.

PyCall::PyError: <class 'AttributeError'>: module 'matplotlib_rb.backend_inline' has no attribute 'FigureCanvas'
  File "/opt/conda/lib/python3.10/site-packages/matplotlib/pyplot.py", line 266, in switch_backend
    canvas_class = backend_mod.FigureCanvas

/home/jovyan/.local/share/gem/ruby/3.1.0/gems/matplotlib-1.2.0/lib/matplotlib/iruby.rb:201:in `switch_backend'
/home/jovyan/.local/share/gem/ruby/3.1.0/gems/matplotlib-1.2.0/lib/matplotlib/iruby.rb:201:in `activate_matplotlib'
/home/jovyan/.local/share/gem/ruby/3.1.0/gems/matplotlib-1.2.0/lib/matplotlib/iruby.rb:152:in `enable_matplotlib'
/home/jovyan/.local/share/gem/ruby/3.1.0/gems/matplotlib-1.2.0/lib/matplotlib/iruby.rb:111:in `activate'
(irb):1:in `<top (required)>'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions