I’m guessing you mean in Juno? When you execute code inside files in Juno, the results are displayed inline rather than in the repl by default. There is a setting you can toggle to change this (in julia-client I think). But the environment of the file and the repl (assuming you’re using the repl inside atom) share environments, so you should be able to execute x = 4 in the file, then type x in the repl and see 4 as the output.
2 Likes