Handling large --input when scripting

I am using Lilaq to make some data plots with some fairly large scatter plots. However, I am running up against the OS’s arg_max limit, or I at least assume that’s what the following means:

bash: line 1: Argument list too long

I tested on a smaller input .json file, and it worked fine, so I assume the size of the input is the problem.

Has anyone had a use case that runs them into this limit and, if so, have you found a workaround that doesn’t just requiring specifying the filename within the Typst file itself?

Hi @Paul744 ,

Do you load the file within Typst via the read function (or similar)? Or do you pass it as a string argument to sys.inputs?

It sounds like the latter. In this case, I would try to pass just the filename to Typst and read the file e.g. with json. In principle there is no limit on the file size with this method.