# Anaconda startup shell scripts are loaded into Julia REPL by mistake

**URL:** <https://discourse.julialang.org/t/anaconda-startup-shell-scripts-are-loaded-into-julia-repl-by-mistake/51180>\
**Category:** VS Code\
**Tags:** question\
**Created:** [December 3, 2020, 11:05am UTC](https://discourse.julialang.org/t/anaconda-startup-shell-scripts-are-loaded-into-julia-repl-by-mistake/51180 "2020-12-03T11:05:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xjtu-blacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xjtu-blacksmith/32/19721_2.png) [@xjtu-blacksmith](https://discourse.julialang.org/u/xjtu-blacksmith)\
**Post date:** [December 3, 2020, 11:05am UTC](https://discourse.julialang.org/t/anaconda-startup-shell-scripts-are-loaded-into-julia-repl-by-mistake/51180/1 "2020-12-03T11:05:51Z")

</div>

Hi everyone! I’m currently using both Anaconda plugin and Julia plugin in VS Code. When I try to launch a Julia script (through REPL) inside a project where Python scripts exist, Anaconda startup shell scripts would always be loaded and then cause problems:

```julia
source /home/zhh/anaconda3/bin/activate
conda activate base
julia> urce /home/zhh/anaconda3/bin/activate
... (the output of the Julia script I'm running)
julia> soERROR: UndefVarError: urce not defined
Stacktrace:
 [1] top-level scope at REPL[1]:1

julia> conda activate base
ERROR: syntax: extra token "activate" after end of expression
Stacktrace:
 [1] top-level scope at REPL[2]:1

julia>

```

I know I can just disable Anaconda plugin for this project, but I wonder if there are any other solutions because sometimes I really need both of them in one project (although not at the same time).

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 3, 2020, 11:11am UTC](https://discourse.julialang.org/t/anaconda-startup-shell-scripts-are-loaded-into-julia-repl-by-mistake/51180/2 "2020-12-03T11:11:12Z")

</div>

As per [here](https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment), you should be able to disable that with the `python.terminal.activateEnvironment` setting:

> **Tip** : To prevent automatic activation of a selected environment, add `"python.terminal.activateEnvironment": false` to your `settings.json` file (it can be placed anywhere as a sibling to the existing settings).

---

<div class="post-metadata">

**Author:** ![xjtu-blacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xjtu-blacksmith/32/19721_2.png) [@xjtu-blacksmith](https://discourse.julialang.org/u/xjtu-blacksmith)\
**Post date:** [December 3, 2020, 11:22am UTC](https://discourse.julialang.org/t/anaconda-startup-shell-scripts-are-loaded-into-julia-repl-by-mistake/51180/3 "2020-12-03T11:22:31Z")

</div>

It works. Thank you!
