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:
parent
dce22a965e
commit
66667d1eef
2 changed files with 82 additions and 18 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue