Maybe something like https://github.com/agarwal/oloop could help?
(I'm not one the author, and I have no idea what it does exactly)
> On 19 Mar 2015, at 18:25, Martin DeMello <martindemello@gmail.com> wrote:
>
> Your best bet would probably be to modify utop. Not sure how much work
> that would be, but at least most of the pieces are in place.
>
> martin
>
> On Sun, Mar 15, 2015 at 1:08 PM, José Romildo Malaquias
> <j.romildo@gmail.com> wrote:
>> Hello.
>>
>> PythonTeX [https://www.ctan.org/pkg/pythontex] is a LaTeX package that
>> allows Python code entered within a TeX document to be executed, and the
>> output to be included in the original document. It supports other
>> languagens beside Python.
>>
>> I have just requested inclusion of OCaml support in PythonTeX:
>> https://github.com/gpoore/pythontex/issues/62
>>
>> The author of PythonTeX says it could be possible, and he explained what
>> would be needed from the OCaml side. See the discussion in issue #62 in
>> the previous link.
>>
>> Basically, it would need a program which reads lines from a text file,
>> and these lines are given as input to an interactive session, giving
>> back input interspersed with output. He gives more details in the issue
>> discussion. Please read the issue discussion in the above link.
>>
>> Is there already such a program? If not, can it be easily written?
>>
>> I appreciate any help in providing this program.
>>
>> Regards,
>>
>> Romildo
>>
>> --
>> Caml-list mailing list. Subscription management and archives:
>> https://sympa.inria.fr/sympa/arc/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs