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

Display cell in suggestion panel #5

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

trungleduc
Copy link
Member

@trungleduc trungleduc commented Nov 22, 2024

Code changes

  • New token ISuggestionsManagerToken: This token provides an ISuggestionsManager instance that allows interaction with suggestions from all notebooks.
  • The default ISuggestionsManagerToken token is a LocalSuggestionsManager instance, which works using notebook metadata, in the next step, another package can provide a RTCSuggestionsManager to replace the default one.
  • SuggestionsModel uses ISuggestionsManagerToken to interact with the suggestions of the current notebook (add, remove...)
  • SuggestionsModel is also exposed as a token (ISuggestionsModelToken) which is used in SuggestionsPanelWidget and commands to handle user actions.

@trungleduc trungleduc added the enhancement New feature or request label Nov 22, 2024
@trungleduc
Copy link
Member Author

@jtpio I don't have a strong feeling about the last point. SuggestionsModel can also be kept private in the SuggestionsPanelWidget. What do you think?

@trungleduc trungleduc marked this pull request as ready for review November 26, 2024 14:07
@trungleduc
Copy link
Member Author

Ignoring the check-release failure due to the upstream issue jupyter-server/jupyter_releaser#596

@trungleduc trungleduc merged commit 22a64d2 into jupyterlab-contrib:main Nov 26, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant