You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Julia with pythontex, and I want to include a script with all the variables and functions at the beginning. I have read the Issue #27, which address the same topic for python. In the case of python I use, (I found this way before reading #27 issue)
\pyc{exec(open('myscript.py').read())}
In my case the myscript.py in the same directory as the tex file.
For Julia I have tried
\jlc{include("./myscript.jl")}
where both myscript.jl and myfile.tex are in the folder 'mydir', but pythontex looks for 'myscript.jl' in the folder 'mydir/pythontex-files-myfile' instead of 'mydir'
I want the julia script to execute, to use variables and functions in my latex document.
The text was updated successfully, but these errors were encountered:
I believe that all of that is behaving as expected. For Python, open() is relative to working directory. For Julia, include() is relative to source file location, which will be a temp file in mydir/pythontex-files-myfile.
I am using Julia with pythontex, and I want to include a script with all the variables and functions at the beginning. I have read the Issue #27, which address the same topic for python. In the case of python I use, (I found this way before reading #27 issue)
\pyc{exec(open('myscript.py').read())}
In my case the myscript.py in the same directory as the tex file.
For Julia I have tried
\jlc{include("./myscript.jl")}
where both myscript.jl and myfile.tex are in the folder 'mydir', but pythontex looks for 'myscript.jl' in the folder 'mydir/pythontex-files-myfile' instead of 'mydir'
I want the julia script to execute, to use variables and functions in my latex document.
The text was updated successfully, but these errors were encountered: