Skip to content

self no longer works with PlainBackend #303

@UliKuch

Description

@UliKuch

Hi!
Thanks for maintaining this Gem, I really enjoy using Jupyter notebooks with Ruby 🙂

Unfortunately, when using the PlainBackend in version 0.6 or 0.7 together with Ruby 3.0.1, I am having issues with the self object. It no longer evaluates to main, but to some other object:
grafik
As I verified by running the line in an irb session, the object seems to be the one created by

@main = TOPLEVEL_BINDING.eval("self").dup

Because of this, I can no longer include any modules inside a notebook.

When I remove the dup in the quoted line, everything seemed to work fine, but I am not sure if that breaks anything else.

Or am I missing some error on my part here? I am running my notebooks via the jupyter_on_rails gem, but the issue does not seem to lie there.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions