I'm looking to use the %storage
magic in a Datalab notebook, but within a function. The line looks like:
%storage write --variable df --object $bucket_object
and when calling the function I get this error:
Undefined variable referenced in command line: $bucket_object
bucket_object
is defined previously in the function, and this works when running outside a function.
This answer regarding a similar question for iPython recommends finding the path and then importing like:
from IPython.core.magics.display import Javascript
Is there a similar approach to call a Datalab magic's respective function so that it would work within another function?