0

I was able to create a Jupyter notebook for Julia. I then proceeded to create a new folder, and then upload a source file to it.

How can I include this file (as in "include("the_file.jl")).

I am using Windows 10.

TIA. Henry

1 Answer 1

3

Precisely as you would do it in the REPL or anywhere else.

include("the_file.jl") 

If this doesn't work for you than you are probably in the wrong folder, which you can check with pwd() and change with cd(path::String).

Alternatively, you can specify the full path rather than the relative path:

include("/full/path/to/the_file.jl") 

If you created the folder from within Julia, than you probably want

include("myfolder/the_file.jl") 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.