# What Juno features do you use most?

**URL:** <https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271>\
**Category:** Juno\
**Created:** [May 11, 2020, 9:45am UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271 "2020-05-11T09:45:54Z")\
**Posts on this page:** 9\
**Page:** 6

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [June 5, 2020, 6:35pm UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/102 "2020-06-05T18:35:03Z")

</div>

In ProfileView you can right-click on the bar and it will also open in your default editor. For flame graphs, ProfileView and Juno both converged on FlameGraphs.jl as the underlying profile-analysis technology, so any differences are just a matter of presentation.

The line-presentation of profiling data is very nice and unique to Juno.

---

<div class="post-metadata">

**Author:** ![jlchan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlchan/32/10958_2.png) [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Post date:** [June 5, 2020, 6:58pm UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/103 "2020-06-05T18:58:50Z")

</div>

Odd, ProfileView doesn’t do that for me when I run it in Juno. I just get REPL outputs like

`/Users/jessechan/Desktop/ESDG.jl/test_profile.jl, profile_test: line 5`

Hovering over the file path shows “Cmd-Click to open link”, but this doesn’t work.

EDIT: ah, I haven’t set environment variable `JULIA_EDITOR`. Thanks for the heads up!

---

<div class="post-metadata">

**Author:** ![bafonso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bafonso/32/7109_2.png) [@bafonso](https://discourse.julialang.org/u/bafonso)\
**Post date:** [June 5, 2020, 9:35pm UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/104 "2020-06-05T21:35:55Z")

</div>

> [@haberdashPI](#):
>
> I’ve never used that feature of Juno, so I can’t say. Both `tmux` and `screen` are old reliable open source solutions to maintaining a running terminal over ssh. I’ve just created a simple way to associate a given vscode workspace and REPL with a tmux or screen session. The scenario you describe is exactly the motivation: vscode already stores the state of the workspace for remote sessions using its ssh remote extension and my extension uses tmux or screen to save the terminal state (with either remote or local workspaces).

I will subscribe and see when the vscode-remote allows for this. Right now your extension doesn’t give us persistence with julia which is a show stopper for me unfortunately as I code on my laptop but the code runs on my GPU box. ☹

---

<div class="post-metadata">

**Author:** ![haberdashPI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/haberdashpi/32/26337_2.png) [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Post date:** [June 5, 2020, 9:38pm UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/105 "2020-06-05T21:38:14Z")

</div>

> [@bafonso](#):
>
> Right now your extension doesn’t give us persistence with julia

Not sure I understand. The extension simply connects to tmux which provides persistence for Julia via a remote terminal session. If you’re having a specific problem getting it working I’m happy to assist if you can give some more details.

---

<div class="post-metadata">

**Author:** ![bafonso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bafonso/32/7109_2.png) [@bafonso](https://discourse.julialang.org/u/bafonso)\
**Post date:** [June 6, 2020, 12:02am UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/106 "2020-06-06T00:02:48Z")

</div>

> [@haberdashPI](#):
>
> Not sure I understand. The extension simply connects to tmux which provides persistence for Julia via a remote terminal session. If you’re having a specific problem getting it working I’m happy to assist if you can give some more details.

You said it yourself in a previous message, julia extension is not aware of this connection and opens another one. Are you able to generate data, restart vscode and recover the same session in julia?

---

<div class="post-metadata">

**Author:** ![haberdashPI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/haberdashpi/32/26337_2.png) [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Post date:** [June 6, 2020, 11:05am UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/107 "2020-06-06T11:05:05Z")

</div>

> [@bafonso](#):
>
> Are you able to generate data, restart vscode and recover the same session in julia?

Yes: to make this work you have to open Julia via the extension with appropriate settings (see the last section of the readme about persistent sessions).

The limitation is that if you open julia this way, you don’t have access to some of the newer cool UI features the Julia extension offers because the two extensions are not aware of each other yet. I am hoping to integrate it once the vscode extension can handle mutilple sessions (see [#1030](https://github.com/julia-vscode/julia-vscode/issues/1030)

---

<div class="post-metadata">

**Author:** ![bafonso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bafonso/32/7109_2.png) [@bafonso](https://discourse.julialang.org/u/bafonso)\
**Post date:** [June 6, 2020, 5:49pm UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/108 "2020-06-06T17:49:42Z")

</div>

Ok, I will keep an eye on that github issue, and I will be happy to test once the juno extension can reconnect to certain repl as that seems to be the missing piece 🙂

---

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [June 12, 2020, 3:22am UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/109 "2020-06-12T03:22:43Z")

</div>

After reading this post, I tried out VSCode and agree with many of the points made here. Funnily there is one seemingly trivial one that I missed very much when trying to execute some of my code:

```julia
@ __DIR__ () 

```

In VSCode it is pasted into the REPL and therefore returns the working directory, while in Juno it gives the directory of the file from which it is executed. A lot of my tests use this “feature” and it is very awkward debugging those tests when I get the wrong directory.

---

<div class="post-metadata">

**Author:** ![marius311](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marius311/32/3953_2.png) [@marius311](https://discourse.julialang.org/u/marius311)\
**Post date:** [June 12, 2020, 3:50am UTC](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271/110 "2020-06-12T03:50:34Z")

</div>

If you install the “Julia Insider” version of the extension, this now works like you want.

[Previous page](https://discourse.julialang.org/t/what-juno-features-do-you-use-most/39271.md?page=5)
