Skip to content
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

Wait for notebook to be ready before converting to presentation #9

Merged
merged 4 commits into from
Feb 16, 2023

Conversation

AnotherCodeArtist
Copy link
Contributor

@AnotherCodeArtist AnotherCodeArtist commented Feb 16, 2023

Hi!

This PR fixes #8. The problem was, that the dirty flag is apparently no indicator for a complete model/context. Thus, although this flag got changed to false, some code blocks have not been present, causing the reported issue. I changed this for the notebookPanel.context.ready promise, which makes the code leaner and of course reliable. Now all code cells are fully loaded when initializeReveal gets called.

Besides this I configured TS to produce source maps, in order to facilitate debugging. Since 'extra-watch-webpack-plugin' caused nothing but troubles for me, I dared to remove it.

@github-actions
Copy link

Binder 👈 Launch a Binder on branch AnotherCodeArtist/rise/main

@fcollonval fcollonval added the bug Something isn't working label Feb 16, 2023
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @AnotherCodeArtist for fixing the bug and improving the configuration.

@fcollonval fcollonval merged commit 9cbf71d into jupyterlab-contrib:main Feb 16, 2023
@fcollonval fcollonval changed the title Fix for #8 Wait for notebook to be ready before converting to presentation Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code cells randomly don't render properly
2 participants