Am 05.04.2022 um 10:15 schrieb Fred Engst:
Thank Sven for that great one-liners!
As I read in the user’s guide, we can actually invoke R library and use it to meet all of
our needs for functions.
I’m just wondering if there is any chance that we can use Python library the same way as
we do with R.
Well, yes and no. It is indeed possible to call Python from within a
gretl/hansl script, using the same "foreign" command block like you
would use for invoking R. See part III of the user guide. ("Technical
details"; the same goes for Julia, Stata, Ox, Octave.)
But R has a special status in that you can tell gretl to directly call
into the R library, instead of starting an entire external process. This
should affect mostly the startup delay. AFAIK, you cannot do this
directly with Python. So, depending on what you meant by the term
"library" in your question, the answer is either no or yes.