Open mmcky opened 3 years ago
Thanks. Yeah, as this is something essential for Julia I think it is best if it is automatic. In practice every Julia project would or should have them.
@mmcky @jlperla after looking at the codebase. It seems that the execution happens in the source directory itself. So, this issue is already handled. Unless you are executing in a temp directory by turning on this option:
execute:
run_in_temp: true
In this case, execution happens in this temp directory and dependant files are not copied there.
Thanks @AakashGfude .We will follow whatever you guys tell us to do. I also really appreciate want to make sure we can use the same devops to whatever extent possible with the python books.
Just keep in mind that we want the separate Project.toml files at the top level of the source tree and at a few sub-trees as well.
And that it needs to execute with the those same relative paths. And when we generate the notebook repo we need all of those as well.
And when we generate the notebook repo we need all of those as well.
We will need to add this to sphinx-tojupyter
as a builder
step in https://github.com/QuantEcon/sphinx-tojupyter/issues/33
Is your feature request related to a problem? Please describe.
For Julia based projects some
authors
have been requesting the ability to includejulia
files such asManifest.toml
andProject.toml
to get fine grain control over thejulia
packages used. This control seems a lot more important in thejulia
context thanpython
. Sometimes these files can be nested in directories to change the behaviour of howjulia
imports packages andcontinuous_time
directory would use the localProject.toml
andManifest.toml
files in preference to the global ones at the root level oflectures
. :https://pkgdocs.julialang.org/v1/toml-files/
Looking at the docs:
@chrisjsewell I had a look at the
python api
in the docs but couldn't see how files get added as dependencies. We could use this mechanism after detecting ajulia
kernel to look for some set files such as the ones above and copy them intojupyter-cache
for execution.Describe the solution you'd like
We can look at adding support to automatically copy these files (based on the folder structure) when a
julia
kernel is detected.Describe alternatives you've considered
None