# Replicate Chris Rackauckas's Juno environment in VS Code from SciML demo in JuliaCon 2020

**URL:** <https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254>\
**Category:** VS Code\
**Created:** [June 20, 2021, 7:33pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254 "2021-06-20T19:33:21Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [June 20, 2021, 7:33pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/1 "2021-06-20T19:33:21Z")

</div>

I’m interested in getting the kind of experience demonstrated starting [here](https://youtu.be/QwVO0Xh2Hbg?t=4896), where lines are presumably run in what seems to be a notebook-like manner, and the outputs of the lines are previewed to the right of the blue vertical line showing up inline with the code.

I see it’s in Juno, but is there currently a way to do this in VS Code? The extensions I’m finding don’t seem to match this.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [June 20, 2021, 9:21pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/2 "2021-06-20T21:21:50Z")

</div>

VSCode’s Julia extension supports inline evaluation since version 16.0: [Julia VS Code extension version v0.16 released](https://discourse.julialang.org/t/julia-vs-code-extension-version-v0-16-released/41692)  
You can find some setting related to it in the settings of the julia extension. Is this what you are looking for?

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 21, 2021, 12:25am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/3 "2021-06-21T00:25:49Z")

</div>

You should be able to get the same look with VS Code. After you install the Julia extension, you’ll find the settings under Preferences → Extensions. You can do all of these things:

The extension currently provides:

- syntax highlighting
- [snippets: latex and user-shared snippets](https://github.com/julia-vscode/julia-vscode/wiki/Snippets)
- [Julia specific commands](https://github.com/julia-vscode/julia-vscode/wiki/Commands)
- [integrated Julia REPL](https://github.com/julia-vscode/julia-vscode/wiki/REPL)
- [code completion](https://github.com/julia-vscode/julia-vscode/wiki/IntelliSense)
- [hover help](https://github.com/julia-vscode/julia-vscode/wiki/Information#hover-help)
- [a linter](https://github.com/julia-vscode/julia-vscode/wiki/Information#linter)
- [code navigation](https://github.com/julia-vscode/julia-vscode/wiki/Navigation)
- tasks for running tests, builds, benchmarks and build documentation
- a debugger
- a plot gallery
- a grid viewer for tabular data
- integrated support for Weave.jl

---

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [June 21, 2021, 3:03pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/4 "2021-06-21T15:03:46Z")

</div>

Not sure why it doesn’t seem to be behaving for me then.

First, addressing inline evaluation. In the Julia extension (julialang.language-julia) v1.2.5 settings, I have the following set:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/7/1760df3332166b620ff799a87379e8edbaca530e.png)

Then using `CTRL+Enter` to run a line, I get results only in the REPL:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/7/6790eb354a3432774ef9bee5a815b82f06c3d7f5.png)

Any suggestions on what I’m missing?

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 21, 2021, 11:50pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/5 "2021-06-21T23:50:08Z")

</div>

Unless there’s another setting that somehow cancels the inlining, it should work when you execute a cell. I’m not sure what the default keybindings are anymore, so I’m not sure what CTRL+ENTER does anymore. I use the following:

```
{
    "key": "f12",
    "command": "language-julia.executeCodeBlockOrSelectionAndMove"
},

```

you can replace f12 by whatever key you prefer: Does this work?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [June 22, 2021, 12:16am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/6 "2021-06-22T00:16:57Z")

</div>

Is it possible now to out the REPL on the side in vscode, as he did there?

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 22, 2021, 6:39am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/7 "2021-06-22T06:39:20Z")

</div>

![a](https://global.discourse-cdn.com/julialang/original/3X/6/0/6097a4145c7a1a15f34212061bad28eadbab80b5.png)

You need to restart vscode afterwards.

I went into settings and did a search for “panel”: it came up pretty self-explanatory. Just change the default location to “right”.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [June 22, 2021, 7:28am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/8 "2021-06-22T07:28:27Z")

</div>

In Julia’s [VS Code keyboard shortcuts reference page](https://www.julia-vscode.org/docs/dev/userguide/keyboard/), it is not clear what is the equivalent of your F12 keybinding.

In any case, there is nothing being previewed inline in VS Code to the right of the executed cell (OP’s question). It seems that one is just able to hover the cursor over variables and functions to get further information/help content?

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [June 22, 2021, 7:39am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/9 "2021-06-22T07:39:05Z")

</div>

I think the default is ALT+ENTER for that command, or that is what I have and I can’t remember changing it. That shows the results inline for me. CTRL+ENTER does only the current line, and it does not show the result for me.

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 22, 2021, 8:38am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/10 "2021-06-22T08:38:04Z")

</div>

Can you try albheim’s suggestion? If you go to “Keyboard Shortcuts” and search for “julia execute” you’ll see several options. The one that is bound to F12 on my system, but which has a different default binding, should work to inline the results.

 ![a](https://global.discourse-cdn.com/julialang/original/3X/d/1/d188529efdabeb8af758370ff73323785e30ec56.png)

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [June 22, 2021, 8:51am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/11 "2021-06-22T08:51:53Z")

</div>

Checked the VS Code keyboard shortcuts and your `F12` command is mapped as `ALT + Enter`. Executing the latter just outputs results to VS Code terminal (REPL).

Could you take a snapshot of your VS Code showing what is actually displayed?

---

<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:** [June 22, 2021, 8:52am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/12 "2021-06-22T08:52:36Z")

</div>

Did you change the Result Type to “inline” or “both”?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [June 22, 2021, 8:57am UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/13 "2021-06-22T08:57:36Z")

</div>

@pfitzseb thank you, it was set to REPL only, my bad.  
@ptoche thanks for the tips.

---

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [June 22, 2021, 2:01pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/14 "2021-06-22T14:01:49Z")

</div>

Looks like it’s a [known bug](https://github.com/julia-vscode/julia-vscode/issues/2138).

Whenever I use `Alt+Enter` (your `F12`), I get this error.

```julia
Running the contributed command: 'language-julia.executeCodeBlockOrSelectionAndMove' failed.

```

I’ve tried deleting the `VSCodeServer/` as well as the entire `v1.6/` directories [as suggested](https://github.com/julia-vscode/julia-vscode/issues/1967#issuecomment-783334642), but the error persists.

@rafael.guerra, so changing the Result Type setting worked for you? I’ve tried every option, and results always come only to REPL, and `Alt+Enter` always gives an error. `Shift+Enter` also fails.

I’ve also tried a couple older versions of the extension with the same results.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [June 22, 2021, 3:29pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/15 "2021-06-22T15:29:16Z")

</div>

@thompsonmj, yes it worked out well with the VS Code Julia extension setting `result type: both`.  
It produces the inline info after `ALT + Enter`:

 ![VS_Code_result_type_both](https://global.discourse-cdn.com/julialang/original/3X/6/2/62ac094b865b2e659f15c950bac11baa1e8e3123.png)

---

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [August 4, 2021, 7:54pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254/16 "2021-08-04T19:54:13Z")

</div>

In case it helps anyone, my issue here was that I was using a PC on a Windows domain with a network drive that was causing issues by splitting the extension installation in a way that I still don’t understand.

I got around this by creating a new local account where everything is only on the C: drive and my extension works perfectly.
