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

Document how to create completions using full notebook content #777

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jupyter_server_ydoc is accessible in web_app.settings
  • Loading branch information
krassowski authored and dlqqq committed Jun 6, 2024
commit 34d71679b5d067f7c563f5278d2c8b2476915bbb
4 changes: 3 additions & 1 deletion packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def initialize_settings(self):
)

# Expose a subset of settings as read-only to the providers
BaseProvider.server_settings = types.MappingProxyType(self.settings)
BaseProvider.server_settings = types.MappingProxyType(
self.serverapp.web_app.settings
)

self.log.info("Registered providers.")

Expand Down