# Where does Julia in VS Code specify startup shell commands if not within startup.jl?

**URL:** <https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791>\
**Category:** VS Code\
**Created:** [November 4, 2022, 8:38pm UTC](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791 "2022-11-04T20:38:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex-s-gardner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex-s-gardner/32/30210_2.png) [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Post date:** [November 4, 2022, 8:38pm UTC](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791/1 "2022-11-04T20:38:49Z")

</div>

For some reason when the Julia REPL starts within VSCode when I hit shift-enter on my first line of Julia code `a = 1` contained within a .jl file I get:

```julia
source /Users/gardnera/tools/miniconda3/bin/activate
julia> urce /Users/gardnera/tools/miniconda3/bin/activate
1

julia> soERROR: UndefVarError: urce not defined
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

```

To me it seems like `source /Users/gardnera/tools/miniconda3/bin/activate` is suppose to be executed as a shell command before the Julia REPL is initiated but for some reason it is trying to be executed at the REPL.

The change in behavior seemed to come out of nowhere.

Strangely, starting Julia from the terminal within VS Code does not result in this error. And there is nothing within the startup.jl file.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [November 6, 2022, 2:13pm UTC](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791/2 "2022-11-06T14:13:48Z")

</div>

This is likely one of your Python plugins misbehaving, not the Julia plugin.

---

<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:** [November 7, 2022, 12:10pm UTC](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791/3 "2022-11-07T12:10:58Z")

</div>

As per [Using Python Environments in Visual Studio Code](https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment:)

> **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).
