Replies: 1 comment
-
|
As the pop-up window says, it's activated but your shell prompt didn't update. This usually happens if you activate a conda environment as part of your terminal startup (it's basically overwriting what we are doing). You can turn that off in your shell or opt out of activation entirely. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have multiple Python environments on my MacOS computer, including the built-in, brew, and conda.
I'd like the Terminal to automatically activate the environment I've selected whenever I open a new Terminal.
This functionality was working perfectly before the introduction of the new feature (#11039), even though it would always display

conda activate base.For example, I select "test" env:
But now it use built-in Python:

environment contributions
extension log
vsode setting
{ "cSpell.userWords": [ "aidea", "arange", "argmax", "astype", "Colab", "conll", "cuda", "dataframe", "datarange", "datas", "dropna", "dtype", "Hsueh", "IISR", "iloc", "itos", "Jsonify", "logits", "lstm", "matplotlib", "minibatch", "mininterval", "MNIST", "mult", "ndarray", "nltk", "nograd", "openai", "openpyxl", "optim", "Perceptron", "pretrained", "psycopg", "pygsheets", "pyplot", "randn", "relu", "sklearn", "softmax", "spacy", "stoi", "tensorboard", "textcoords", "topk", "torchtext", "torchvision", "tqdm", "TSMC", "tzip", "unsqueeze", "xaxis", "xlabel", "ylabel", "zlabel" ], "diffEditor.maxComputationTime": 0, "editor.accessibilitySupport": "off", "editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace, 'MesloLGS NF'", "editor.guides.bracketPairs": true, "editor.inlineSuggest.enabled": true, "editor.renderWhitespace": "all", "editor.wordWrapColumn": 120, "explorer.confirmDragAndDrop": false, "files.autoSave": "onFocusChange", "git.autofetch": true, "github.copilot.enable": { "*": true, "markdown": false, "plaintext": true, "yaml": false }, "vscode-pets.position": "explorer", "vscode-pets.theme": "beach", "workbench.editorAssociations": { "*.csv": "gc-excelviewer-csv-editor" }, "jupyter.widgetScriptSources": [ "jsdelivr.com", "unpkg.com" ], "notebook.lineNumbers": "on", "git.alwaysShowStagedChangesResourceGroup": true, "redhat.telemetry.enabled": true, "security.workspace.trust.untrustedFiles": "open", "window.commandCenter": false, "editor.quickSuggestionsDelay": 5, "terminal.integrated.defaultProfile.windows": "Command Prompt", "[python]": { "editor.formatOnType": true, // ruff setting config: Application Support/ruff/ruff.toml "editor.defaultFormatter": "charliermarsh.ruff" }, "[markdown]": { "editor.formatOnSave": true, "editor.defaultFormatter": "darkriszty.markdown-table-prettify" }, "c-cpp-compile-run.should-show-notifications": false, "files.exclude": {}, "files.watcherExclude": {}, "vscode-office.openOutline": true, "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "markdown-preview-enhanced.enableExtendedTableSyntax": true, "markdown-preview-enhanced.enableCriticMarkupSyntax": true, "workbench.colorTheme": "Default Dark+", "[html]": { "editor.defaultFormatter": "vscode.html-language-features" }, "[tex]": { // Enable intellisence/quick suggestions "editor.suggest.snippetsPreventQuickSuggestions": false, // Indentation size "editor.tabSize": 2 }, "[latex]": { // Enable intellisence/quick suggestions "editor.suggest.snippetsPreventQuickSuggestions": false, // Indentation size "editor.tabSize": 2 }, "[bibtex]": { // Indentation size "editor.tabSize": 2 }, "latex-workshop.bibtex-format.sort.enabled": true, "latex-workshop.bibtex-format.align-equal.enabled": true, "latex-workshop.bibtex-format.sortby": [ "booktitle", "journal", "title", "year", ], "latex-workshop.bibtex-fields.sort.enabled": true, "latex-workshop.bibtex-fields.order": [ "title", "author", "key", "booktitle", "journal", "year", "volume", "number", "pages", "publisher", "address", "editor", "edition", "translator", ], "latex-workshop.intellisense.package.enabled": true, "latex-workshop.latex.autoClean.run": "onBuilt", "latex-workshop.latex.clean.fileTypes": [ "*.aux", "*.bbl", "*.blg", "*.idx", "*.ind", "*.lof", "*.lot", "*.out", "*.toc", "*.acn", "*.acr", "*.alg", "*.glg", "*.glo", "*.gls", "*.ist", "*.fls", "*.log", "*.fdb_latexmk", "*.xmpi", "*.xmpdata", ], "latex-workshop.latex.recipe.default": "xelatex -> bibtex -> xelatex*2", "latex-workshop.latex.recipes": [ { "name": "xelatex -> bibtex -> xelatex*2", "tools": [ "xelatex", "bibtex", "xelatex", "xelatex" ] }, { "name": "xelatex*2", "tools": [ "xelatex", "xelatex" ] }, { "name": "pdflatex*2", "tools": [ "pdflatex", "pdflatex" ] }, { "name": "pdflatex -> bibtex -> pdflatex*2", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] }, ], "latex-workshop.latex.tools": [ { "name": "xelatex", "command": "xelatex", "args": [ "-silent", "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-outdir=%OUTDIR%", "%DOC%" ], "env": {} }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ], "env": {} }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ], "env": {} } ], "latex-workshop.message.badbox.show": false, "latex-workshop.synctex.afterBuild.enabled": true, "latex-workshop.view.pdf.internal.synctex.keybinding": "double-click", "latex-workshop.view.pdf.viewer": "tab", "latex-workshop.latex.autoBuild.run": "never", "markdown-pdf.displayHeaderFooter": false, "notebook.diff.ignoreMetadata": true, "notebook.diff.ignoreOutputs": true, "ruff.showNotifications": "always", "editor.formatOnPaste": true, "terminal.integrated.inheritEnv": false, "terminal.integrated.env.osx": { "FIG_NEW_SESSION": "1" }, }conda setting
I have temporarily add
pythonTerminalEnvVarActivationtopython.experiments.optOutFromin settings to make it work properly. I'm curious if there's a more optimal solution to resolve this issue. Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions