Skip to content

Improve error message raised when exporting relative import in notebook.#1590

Merged
jph00 merged 2 commits intoAnswerDotAI:mainfrom
dienhoa:improve-relative-import-error
Apr 22, 2026
Merged

Improve error message raised when exporting relative import in notebook.#1590
jph00 merged 2 commits intoAnswerDotAI:mainfrom
dienhoa:improve-relative-import-error

Conversation

@dienhoa
Copy link
Copy Markdown
Contributor

@dienhoa dienhoa commented Apr 21, 2026

Fixes #1589

Before this change, export failed with just assert not level when exporting with relative import, which did not explain the actual problem. This update tells the user that relative imports are not supported during export and includes the relevant context.

@jph00

@dienhoa
Copy link
Copy Markdown
Contributor Author

dienhoa commented Apr 21, 2026

Hmm I'm not sure why the CI is failing. The notebook and the exported .py both seem clean

@jph00
Copy link
Copy Markdown
Contributor

jph00 commented Apr 22, 2026

Thanks! I'm not sure what's up with the CI either...

@jph00 jph00 merged commit 40697ed into AnswerDotAI:main Apr 22, 2026
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better error message for relative imports when exporting notebooks

2 participants