Is there a way to move files at runtime outside of...
# general
b
Is there a way to move files at runtime outside of the
BUILD
directory (or subdirectories)? I'm using Voila to run a notebook, and it is expecting files to be in specific places on the file system. I tried using
files
and
relocated_files
targets, but you can't throw an absolute path as a destination.
h
Yeah, relocated_files is about changing relative paths in digests, but those relative paths get materialized into sandboxes, not to arbitrary locations of your choosing
What are the files in question? Your own source files?
And what is the location voila expects? Is it outside the repo entirely?
b
It's a custom "template" for displaying widgets - various js/css/html type files. And yes, it expects them in one of a few preset places. From the documentation:
Copy code
These folders can exist in the standard Jupyter configuration locations, in a folder called voila/templates. For example:

~/.local/share/jupyter/voila/templates
~/path/to/env/dev/share/jupyter/voila/templates
/usr/local/share/jupyter/voila/templates
/usr/share/jupyter/voila/templates
h
Gotcha, so, yeah, sounds like it’ll require a little plugin, maybe hooked up to the
export
goal