Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T03:00:40.994Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

jupyter_settings.rs

29 lines · 852 B · rust
1use collections::HashMap;
2
3use editor::EditorSettings;
4use gpui::App;
5use settings::{RegisterSetting, Settings};
6
7#[derive(Debug, Default, RegisterSetting)]
8pub struct JupyterSettings {
9    pub kernel_selections: HashMap<String, String>,
10}
11
12impl JupyterSettings {
13    pub fn enabled(cx: &App) -> bool {
14        // In order to avoid a circular dependency between `editor` and `repl` crates,
15        // we put the `enable` flag on its settings.
16        // This allows the editor to set up context for key bindings/actions.
17        EditorSettings::jupyter_enabled(cx)
18    }
19}
20
21impl Settings for JupyterSettings {
22    fn from_settings(content: &settings::SettingsContent) -> Self {
23        let jupyter = content.editor.jupyter.clone().unwrap();
24        Self {
25            kernel_selections: jupyter.kernel_selections.unwrap_or_default(),
26        }
27    }
28}
29
Served at tenant.openagents/omega Member data and write actions are omitted.