Skip to content
Draft
1 change: 0 additions & 1 deletion src/analysis/AnalysisLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ const AnalysisEditorFrame = ({ styles, mode, analysisName, toolLabel, workspace,

useOnMount(() => {
const cloudStorageDirectory = `gs://${bucketName}/notebooks`;

const setUpAnalysis = _.flow(
Utils.withBusyState(setBusy),
withErrorReporting('Error setting up analysis')
Expand Down
7 changes: 4 additions & 3 deletions src/analysis/utils/tool-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ export const toolExtensionDisplay: Partial<Record<ToolLabel, ExtensionDisplay[]>
};
export const getPatternFromRuntimeTool = (toolLabel: RuntimeToolLabel): string => {
const patterns: Record<RuntimeToolLabel, string> = {
[runtimeToolLabels.RStudio]: '.+(\\.R|\\.Rmd)$',
[runtimeToolLabels.Jupyter]: '.*\\.ipynb',
[runtimeToolLabels.JupyterLab]: '.*\\.ipynb',
// Adding suffixes to conda, pip, and poetry environments (only conda supports R)
[runtimeToolLabels.RStudio]: '.+(\\.R|\\.Rmd|\\.yml)$',
[runtimeToolLabels.Jupyter]: '.+(\\.ipynb|\\.yml|\\.txt|\\.lock|\\.toml)$',
[runtimeToolLabels.JupyterLab]: '.+(\\.ipynb|\\.yml|\\.txt|\\.lock|\\.toml)$',
};
return patterns[toolLabel];
};
Expand Down