-
Notifications
You must be signed in to change notification settings - Fork 34
Description
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:

As I verified by running the line in an irb session, the object seems to be the one created by
Line 42 in fb20cc3
| @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.