Add kernel detection for language support of runnable markdown cells (#29664)

Closes #27757

Release Notes:

- List of runnable markdown cells is now based on detected jupyter
kernels instead of hardcoded to Python and TypeScript
This commit is contained in:
Jon Gretar Borgthorsson 2025-05-22 06:23:05 +03:00 committed by GitHub
parent dce22a965e
commit 66667d1eef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 18 deletions

View file

@ -279,4 +279,14 @@ impl ReplStore {
pub fn remove_session(&mut self, entity_id: EntityId) {
self.sessions.remove(&entity_id);
}
#[cfg(test)]
pub fn set_kernel_specs_for_testing(
&mut self,
specs: Vec<KernelSpecification>,
cx: &mut Context<Self>,
) {
self.kernel_specifications = specs;
cx.notify();
}
}