# Revise not working in notebook in VSCode

**URL:** <https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657>\
**Category:** VS Code\
**Tags:** revise, notebooks\
**Created:** [August 2, 2021, 2:19am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657 "2021-08-02T02:19:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Post date:** [August 2, 2021, 2:19am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/1 "2021-08-02T02:19:37Z")

</div>

I am using a dev’ed package in a notebook inside VSCode (great new feature!). When the code in the package changes the notebook does not detect the change.

```julia
using Revise

```

is the first statement in the notebook but that doesn’t seem to make any difference.

The only way I’ve found to get the notebook to update is to kill VSCode and restart. Anybody else experienced this problem?

Running Linux Mint 19.2, Julia version 1.6.2, VSCode 1.58.2

---

<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:** [August 2, 2021, 7:28am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/2 "2021-08-02T07:28:57Z")

</div>

Notebook eval is missing the required Revise-hooks. You should be able to manually call `Revise.revise()` until this is fixed.

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [November 5, 2021, 9:15am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/3 "2021-11-05T09:15:11Z")

</div>

I have similar problem. For me Revise also doesn’t work for normal .jl files in VSCode.

Julia 1.6.3  
vscode-julia v1.4.3  
Revise v3.1.20

Furthermore, is it known that sometimes modules like CSV or DataFrames aren’t loaded when executed via ALT+ Enter. In example if I request to evaluate several lines of code via ALT + Enter, I would expect that they are evaluated in the order I send the request, but sometimes it skips lines like `using DataFrames` or move on. Then the following code gives an error because it depends on the modules. It happens to me only when I use ALT + Enter.

When I in example, only request to evaluate all modules, I will not get a succesful flag for the modules and if request to evaluate them again it works

---

<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 5, 2021, 9:24am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/4 "2021-11-05T09:24:03Z")

</div>

> [@Volker](#):
>
> For me Revise also doesn’t work for normal .jl files in VSCode.

In what context? REPL evaluation? Inline evaluation?

> [@Volker](#):
>
> Furthermore, is it known that sometimes modules like CSV or DataFrames aren’t loaded when executed via ALT+ Enter. In example if I request to evaluate several lines of code via ALT + Enter, I would expect that they are evaluated in the order I send the request, but sometimes it skips lines like `using DataFrames` or move on. Then the following code gives an error because it depends on the modules. It happens to me only when I use ALT + Enter.

Is this by holding Alt-Enter and sequentially evaluating a bunch of lines? Yeah, there’s a tricky race condition in that part of the code…

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [November 5, 2021, 9:25am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/5 "2021-11-05T09:25:43Z")

</div>

I’m not sure I just open a jl-file in VSCode and hit ALT+Enter with the cursor which marks on a specific line

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [November 5, 2021, 9:28am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/6 "2021-11-05T09:28:20Z")

</div>

> [@pfitzseb](#):
>
> Is this by holding Alt-Enter and sequentially evaluating a bunch of lines? Yeah, there’s a tricky race condition in that part of the code…

Is there a work around? Like evaluating blocks with Shift + Enter

---

<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 5, 2021, 9:30am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/7 "2021-11-05T09:30:10Z")

</div>

Just select whatever code you want to evaluated and hit Alt-Enter. Or wait for half a second after each line (or until it’s evaluated).

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [November 5, 2021, 10:16am UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/8 "2021-11-05T10:16:32Z")

</div>

> [@Volker](#):
>
> I have similar problem. For me Revise also doesn’t work for normal .jl files in VSCode.
> 
> Julia 1.6.3  
> vscode-julia v1.4.3  
> Revise v3.1.20

Do you have a clue what is causing that Revise isn’t working for me?

---

<div class="post-metadata">

**Author:** ![lewis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lewis/32/5217_2.png) [@lewis](https://discourse.julialang.org/u/lewis)\
**Post date:** [December 10, 2021, 6:33pm UTC](https://discourse.julialang.org/t/revise-not-working-in-notebook-in-vscode/65657/9 "2021-12-10T18:33:15Z")

</div>

Where do you call this?

In every notebook?

Can it be placed in Julia startup.jl?
