-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve ipynb loading hitches #132
Conversation
this fixes three issues that happen when loading an ipynb file in the code editor: 1) when an ipynb file was selected and the file content wasn't loaded, the error handler was called 2) when a parse error occurred, the error handler was called with incorrect arguments 3) when loading an ipynb file, the unparsed file content renders to the page briefly even when the content is valid We also update the loadable usage in the codeeditor to use the loadable class.
✅ Deploy Preview for hew-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #132 +/- ##
=======================================
Coverage 82.78% 82.78%
=======================================
Files 49 49
Lines 6482 6482
Branches 454 454
=======================================
Hits 5366 5366
Misses 1116 1116 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, though personally I find the pipe
s harder to read.
good point -- i think it's useful to represent the result as an |
this fixes three issues that happen when loading an ipynb file in the code editor:
when an ipynb file was selected and the file content wasn't loaded, the error handler was called.
when a parse error occurred, the error handler was called with incorrect arguments.
when loading an ipynb file, the unparsed file content renders to the page briefly, even when the content is valid.
We also update the loadable usage in the codeeditor to use the loadable class methods and prevent the filename info from shrinking and growing during the file loading process.