-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfiles.mli
33 lines (24 loc) · 1007 Bytes
/
files.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(*
* iocamlserver - IOCaml notebook server
*
* (c) 2014 MicroJamJar Ltd
*
* Author(s): andy.ray@ujamjar.com
* Description: Utilities to deal with notebooks on the file system
*
*)
(** list notebooks in the given path *)
val list_notebooks : string -> string list Lwt.t
(** get name for a new notebook, given list of current notebooks *)
val new_notebook_name : string list -> string Lwt.t
val empty_notebook : string -> string
val tutorial_notebook : unit -> string
val using_out : string -> (out_channel -> 'a) -> 'a
val file_or_path : string -> string * string
(** extract notebook name from json, then remove it *)
val prepare_ipynb_for_saving : bool -> string -> string * string
val load_ipynb_for_serving : (string -> string) -> string -> string Lwt.t
val create_static_site :
to_dir:string -> notebook_path:string -> notebook_filename:string ->
iocaml_kernel:[`byte_code_kernel | `js_kernel of string * string | `js_kernel_file of string] ->
base_path:string -> unit Lwt.t