Cannot resolve import (bug? for mutual importing notebooks)

We’ve shipped the fix for circular import-with (and updated the Introduction to Imports to mention this restriction, as suggested).

If you attempt to use import-with in conjunction with circular imports, any symbols you import will not resolve and will appear gray:

In addition, you will see a warning in the console:

circular module definition; ignoring

Unfortunately, the notebooks in your first post still appear to have circular import-with‘s, and are now failing in a predictable way… but at least it’s not failing in an unpredictable way, and the gray imports should guide you towards restructuring the notebook and fixing this problem. Let me know if you need any further assistance.

(I plan on building something to visualize imports between notebooks, similar to the notebook visualizer, to further assist in debugging these problems. If someone has already written one, please share!)

4 Likes