- Install Julia language. This was tested on the Long-Term Support (LTS) version 1.6.7 but it should probably work on the newer version.
- Install Julia extra package dependencies:
- Open a terminal/command line/console/shell and go to this project's root directory/folder. So basically the directory/folder containing
Manifest.toml
,Project.toml
,/src
,/cfg
, etc.- On Windows, you can use the Start Menu search bar for "Windows PowerShell" and open that.
- Then type
cd C:/Users/blablablabla/Downloads/DOEVisualizer
(change the path to wherever you downloaded this folder).
- Open a Julia REPL/shell by running the command
julia
. The Julia executable (e.g.julia.exe
for a Windows computer, but Julia works on Mac OS and Linux too) must be in yourPATH
. - If not, you need to know where Julia was installed on the computer. Usually somewhere like
C:/Users/username/AppData/Local/Programs/Julia-1.6.7
, whereusername
is your Windows accounts folder name andJulia-1.6.7
should be replaced with your Julia version, for a Windows computer. Your computer might be different. To run Julia (open a Julia REPL/shell) this way, you would run the commandC:/Users/username/AppData/Local/Programs/Julia-1.6.7/bin/julia.exe
(replace the version number if needed). If you installed the portable version of Julia, you should probably know where thejulia.exe
is (e.g. your/Downloads
folder). - Once inside the Julia REPL/shell, type
using Pkg
and press Enter. - Then, type
Pkg.activate(".")
and press Enter. - Then, type
Pkg.instantiate()
and press Enter. Wait for Julia to install all the extra packages. This might take a while depending on the speed of your Internet connection and computer.
- Open a terminal/command line/console/shell and go to this project's root directory/folder. So basically the directory/folder containing
- Once everything is downloaded and installed, you can run the DOEVisualizer app/program by typing
include("src/DOEVisualizer.jl")
and pressing Enter. This might take some time to compile (further install) the program. Julia only compiles part of the program that is used, so even if a graphical interface shows up, clicking on buttons the first time might take some time to compile those other parts of the program that run them. - Now, you can re-open the program with the command
include("src/DOEVisualizer.jl")
as used above (note that if some code or configurations have changed, you must restart the Julia REPL/shell by quitting and re-runningjulia --project=. -i src/DOEVisualizer.jl
or simply repeating steps 2.1 to 2.6 and 3.) - The first time you install and run everything it will take a long time to download and install everything for the first time. It should be much faster the next times. Unfortunately, the way Julia works makes it so that certain parts of the program must be re-compiled every time you re-open a Julia shell, so everything written in step 3. will always happen. This is why it is recommended to keep an already opened Julia shell that has previously opened the DOEVisualizer for as long as possible, and to simply re-run
include("src/DOEVisualizer.jl")
to restart the DOEVisualizer.
- When you run the DOEVisualizer (e.g. with
include("src/DOEVisualizer.jl")
in a Julia shell), you should be greeted with an app window showing you a few options. If you just want a quick test, you should prepare a CSV or an Excel spreadsheet table in the accepted format and remember the top-left cell position as well as the bottom-right cell position. You can then proceed to put those cell position in the DOEVisualizer interface in the last text field at the bottom, using the formatA1:B2
(top-left:bottom-right). Then, click on the "Visualize" button. - You must then find and select and open the CSV or Excel spreadsheet you used.
- A new window will then open as the DOEVisualizer.
- For now, it is recommend to only manipulate (rotate with left-click, move with right-click, zoom with mouse wheel) using the bottom left (3rd) 3D plot model, as the top two ones are buggy.
- Open Julia as explained previously in step 2 (2.1 to 2.5).
- Type
Pkg.add("PackageCompiler")
and press Enter. - Type
using PackageCompiler
and press Enter. - Copy the path where you downloaded the DOEVisualizer (this folder) e.g.
C:/Users/blablablabla/Downloads/DOEVisualizer
. - Type
create_app(raw"C:/Users/blablablabla/Downloads/DOEVisualizer", "app")
. This will create a folder/app
in the current folder and inside it will be an executable program (e.g.C:/Users/blablablabla/Downloads/DOEVisualizer/app/bin/julia.exe
). Simply running that should run the DOEVisualizer.- If, for some reason, this fails or you want to retry, but the
/app
folder was already created, then you can instead usecreate_app(raw"C:/Users/blablablabla/Downloads/DOEVisualizer", "app"; force=true)
(notice theforce=true
at the end).
- If, for some reason, this fails or you want to retry, but the