# Symbolics 'solve' command undefined

**URL:** <https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766>\
**Category:** General Usage\
**Tags:** symbolics\
**Created:** [August 29, 2024, 11:56am UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766 "2024-08-29T11:56:28Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 31, 2024, 10:38am UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/21 "2024-08-31T10:38:43Z")

</div>

> [@carstenbauer](#):
>
> By default, jupyter notebooks use the Julia environment (Project.toml) that is closest to the notebook file (e.g. in the same folder)

Bit of an aside for this thread but is this true? I’m far from computers atm but I don’t think it is, unless maybe it’s a VSCode notebook thing? I use IJulia fairly extensively and always have a cell with `] activate .` at the top as otherwise it would use the default environment of the kernel.

---

<div class="post-metadata">

**Author:** ![dawbarton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dawbarton/32/215461_2.png) [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Post date:** [August 31, 2024, 11:54am UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/22 "2024-08-31T11:54:55Z")

</div>

The [docs currently say](https://julialang.github.io/IJulia.jl/stable/manual/usage/#Julia-projects) that a project in the current or parent folder will be activated by default (if it exists). I’m pretty sure that’s what happened last time I tried it.

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [August 31, 2024, 12:01pm UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/23 "2024-08-31T12:01:16Z")

</div>

> [@nilshg](#):
>
> Bit of an aside for this thread but is this true?

It is and has been like that for years. Maybe you’re using a custom kernel that doesn’t start with `--project`?

> [@nilshg](#):
>
> maybe it’s a VSCode notebook thing?

I’m talking about regular Jupyter + IJulia. I don’t know how notebooks opened in VSCode behave (although I would suspect that they use the environment that is selected for the extension).

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 31, 2024, 12:18pm UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/24 "2024-08-31T12:18:12Z")

</div>

Interesting, I never knew this. I guess I never noticed because I use multiple threads so have to add my own kernels with a `-t` flag which I assume then won’t have the project flag set.

---

<div class="post-metadata">

**Author:** ![danielwe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielwe/32/35657_2.png) [@danielwe](https://discourse.julialang.org/u/danielwe)\
**Post date:** [August 31, 2024, 7:09pm UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/25 "2024-08-31T19:09:40Z")

</div>

> [@nilshg](#):
>
> add my own kernels with a `-t` flag which I assume then won’t have the project flag set.

Correct. The default kernel installed when you `add IJulia` or `build IJulia` includes the arg `--project=@.`, but when manually using `installkernel` there are no default args added, so unless you add `--project` yourself the kernel won’t have it.

> <https://github.com/JuliaLang/IJulia.jl/blob/60568fabbe8abd54ae26b2acf2c426c830ed801b/deps/build.jl#L6>

---

<div class="post-metadata">

**Author:** ![Conor-McLeod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/conor-mcleod/32/211620_2.png) [@Conor-McLeod](https://discourse.julialang.org/u/Conor-McLeod)\
**Post date:** [September 15, 2024, 6:46pm UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/26 "2024-09-15T18:46:09Z")

</div>

Interestingly, I did not get the `"Nemo is required. Execute `using Nemo` to enable this functionality."` error message, only the symbolic solve undefined error. If Nemo is required for this function, should it not be a dependency of Symbolics already? Or is it because it’s only this specific function that depends on it, that it’s not included by default?

---

<div class="post-metadata">

**Author:** ![greatpet](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Post date:** [September 15, 2024, 6:56pm UTC](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766/27 "2024-09-15T18:56:08Z")

</div>

It sounds like you have an outdated version of Symbolics. Try starting from a clean virtual environment in REPL.

[Previous page](https://discourse.julialang.org/t/symbolics-solve-command-undefined/118766.md?page=1)
