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

🪝hooks aligned for ipynb or plain code #600

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

stevejpurves
Copy link
Collaborator

@stevejpurves stevejpurves commented Feb 9, 2023

The react package provides a couple of hooks to help with ThebeNotebooks. One of the hooks dealt wth ipynb files (INotebookContent) and had been developed further than the second hook that deals with plain code cells as an array of strings.

This PR aligns the base features of the hooks (various execute methods, common approach to ref handling, etc..) while still providing the two different loading methods.

note the original useNotebookfromSource has been renamed useNotebookfromSourceLegacy and marked as deprecated for now, but users should transition to the new useNotebookFromSource (note fixed camel-casing).

@stevejpurves stevejpurves merged commit 3d03236 into main Feb 9, 2023
@stevejpurves stevejpurves deleted the ref/nb-hooks branch February 9, 2023 12:11
@stevejpurves
Copy link
Collaborator Author

cc @rowanc1

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.

1 participant