# Having difficulties applying Julia

**URL:** <https://discourse.julialang.org/t/having-difficulties-applying-julia/13177>\
**Category:** New to Julia\
**Created:** [August 10, 2018, 12:20pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177 "2018-08-10T12:20:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![momsi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/momsi/32/8034_2.png) [@momsi](https://discourse.julialang.org/u/momsi)\
**Post date:** [August 10, 2018, 12:20pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/1 "2018-08-10T12:20:01Z")

</div>

Hi,

I’m new to Julia and not what I would call an advanced programmer. I’m an engineer and I and know some languages including C and Python. I found Julia and find it very interesting.

I’d like to explain my problem of getting into Julia with an example: I often use programming to deal with data from measurements. I have large sets of various data, mostly in form of excel sheets or csv. To analyse these data I most often use Python. To do this, I use Spyder, write the necessary code (e.g. load exel data, perform some math-magic, draw some plots and spit out some values). I then have finished “scripts” i can always execute when i have new data to be analysed, or change/add functionality of the code.

I now found julia very promising, because it seems to have an even easier way to work with vectors, arrays or complex numbers.

But I cant seem to find an IDE that I can write my code and execute it, change a line, execute again …

I found the Julia console, which is not very applicable for my use case. Also stuff like Jupiter notebooks and alike seems like a terrible solution for my use case (or i just dont understand how to employ that). I installed JuliaPRO/Atom, which looks somewhat similar to Sypder, but there is no way of simply writing code in a file, press a Run button and have the code executed and your results in the console.

Can you maybe point me to a programming environment that is similar to Spyder for Python?

Thanks

---

<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 10, 2018, 12:26pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/2 "2018-08-10T12:26:44Z")

</div>

I’m not sure I understand how JuliaPRO/Atom (I assume you mean the [Juno](http://junolab.org) part of JuliaPro) does not achieve your aim? You can simply write a \*.jl file and hit the run button (or Ctrl+Enter) to execute the code in the file and see the results in the integrated REPL and/or plot pane.

Could you explain what you’re missing from this?

---

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [August 10, 2018, 12:26pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/3 "2018-08-10T12:26:46Z")

</div>

> [@momsi](#):
>
> I installed JuliaPRO/Atom, which looks somewhat similar to Sypder, but there is no way of simply writing code in a file, press a Run button and have the code executed and your results in the console.

I’m pretty sure JuliaPro/JunoLab/Atom should have that functionality. That is the ‘default’ programming environment for Julia, I think it is safe to say. You can also try out VS Code with the Julia plugin for similar functionality.

---

<div class="post-metadata">

**Author:** ![momsi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/momsi/32/8034_2.png) [@momsi](https://discourse.julialang.org/u/momsi)\
**Post date:** [August 10, 2018, 12:48pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/4 "2018-08-10T12:48:03Z")

</div>

Well… I seem to be missing the run button …

I see that Ctrl+Enter runs the line the cursor is in, but not the whole script.

Anyway, I dont see any buttons at all in Atom… and in the pulldown menus there is no run also.

---

<div class="post-metadata">

**Author:** ![Joshua\_Bowles](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joshua_bowles/32/4515_2.png) [@Joshua\_Bowles](https://discourse.julialang.org/u/Joshua_Bowles)\
**Post date:** [August 10, 2018, 12:49pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/5 "2018-08-10T12:49:17Z")

</div>

uber-juno for atom, and julilang for vscode allow this. When your cursor is on a line of code you push (command+return) for atom and (control+return) in vscode.

Here are screenshots with 0.6.2, since you are using JuliaPro and m understanding is that JuliaPro is still on 0.6.

 ![juno_ataom_repl_on_file](https://global.discourse-cdn.com/julialang/original/3X/8/c/8ca54fa255700659a911e23b761f0abee4425702.png)

 ![vscode_reple_on_file](https://global.discourse-cdn.com/julialang/original/3X/7/1/710bd7863b793f5e38390584e3399302dbe90d94.png)

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [August 10, 2018, 12:54pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/6 "2018-08-10T12:54:17Z")

</div>

> [@momsi](#):
>
> I see that Ctrl+Enter runs the line the cursor is in, but not the whole script.
> 
> Anyway, I dont see any buttons at all in Atom… and in the pulldown menus there is no run also.

I think the shortcut for running the whole file is Ctrl+shift+enter? Not at a computer so can’t check at the moment.

Atom itself is just a text editor (developed by GitHub) and not specifically built for Julia. The Juno packages turns it I to a Julia IDE with a bunch of extra functionality. IIRC it used to add a sidebar with buttons, though now that you bring it up I haven’t seen them for a while. I never used them (the keyboard shortcuts are what I use).

---

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [August 10, 2018, 1:05pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/7 "2018-08-10T13:05:07Z")

</div>

If all you have is ‘a script’ which you want to run, you can simply run it in the REPL by including it:

`include("C:\\temp\\myscript.jl")`

This will run all of the code (which itself might read and write data/plots).

---

<div class="post-metadata">

**Author:** ![Joshua\_Bowles](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joshua_bowles/32/4515_2.png) [@Joshua\_Bowles](https://discourse.julialang.org/u/Joshua_Bowles)\
**Post date:** [August 10, 2018, 1:09pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/8 "2018-08-10T13:09:10Z")

</div>

you can also load the file into a REPL

```julia
julia> include("luhn_algo.jl")
#or
julia> include("PATH_TO_FILE.jl")

```

---

<div class="post-metadata">

**Author:** ![momsi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/momsi/32/8034_2.png) [@momsi](https://discourse.julialang.org/u/momsi)\
**Post date:** [August 10, 2018, 1:20pm UTC](https://discourse.julialang.org/t/having-difficulties-applying-julia/13177/9 "2018-08-10T13:20:50Z")

</div>

Ah … I just found out its ALT+Enter … problem solved.

Thanks !
