diff --git a/src/analysis/AnalysisLauncher.js b/src/analysis/AnalysisLauncher.js index ce01f5e1aa..8d31a1aad4 100644 --- a/src/analysis/AnalysisLauncher.js +++ b/src/analysis/AnalysisLauncher.js @@ -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') diff --git a/src/analysis/utils/tool-utils.ts b/src/analysis/utils/tool-utils.ts index 271576b6e8..c836317350 100644 --- a/src/analysis/utils/tool-utils.ts +++ b/src/analysis/utils/tool-utils.ts @@ -180,9 +180,10 @@ export const toolExtensionDisplay: Partial }; export const getPatternFromRuntimeTool = (toolLabel: RuntimeToolLabel): string => { const patterns: Record = { - [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]; };