From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30503 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Develop Lua filters in Jupyer notebooks Date: Fri, 29 Apr 2022 11:07:10 +0000 Message-ID: <9c1e208bffc24605a4f2b39c41bb6a73@unibe.ch> References: <5a2975bc-df86-4c7b-be84-131425314474n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_9c1e208bffc24605a4f2b39c41bb6a73unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21694"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBYMNV6JQMGQEOLI4ZGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 29 13:07:17 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f55.google.com ([209.85.167.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nkOSz-0005RF-76 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 29 Apr 2022 13:07:17 +0200 Original-Received: by mail-lf1-f55.google.com with SMTP id k11-20020a05651210cb00b00471d1b1be81sf3236666lfg.17 for ; Fri, 29 Apr 2022 04:07:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651230436; cv=pass; d=google.com; s=arc-20160816; b=1D4fe9WS2RbgGOn0D8vnUJm8YRzjNS5CAa/emLcPlmRjAElxUwfaA30zo6fiH4F1t9 wc5atmmrMDAWTOXZwTUf6iV8Cglv1Qu0PwwbG8lXdk3YXskSRJfJkfqNszfQg4wa50WK zZ92mBGnZWgfqnml7GGuv55x3nSAnXu/cnbTPFXshGQUShj9Icjvyt8u9h3lW/eqej3K hZywMPENTqFcO+2WDq9B0mKQFNUNVuN8/qjmjL2RugJkgEIPcXze6uEUbNLq9yX9if5X Xfw8f1tcQmUrm1x1zw2HHrrBkCUrRJ56hwAH4pwR1P47iHM9+zsxSPrxuyOHR6wCtB62 hRrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=/RMHX2NqaiKiLLnT+b7O3zDOcy148VQAIaptjZ+2jOc=; b=I4U199bGI46JQeyOyatIvVi68Vx57WSYpEQXqrsuXCEIajepABQu5/cgiyt+J1tDFD ws0nyz95v6beJz7kvdXwJ555xLESHyXcYf68deWTdKGUx+PSRL4HzhMHr4sGozO85euQ gnDDUarVNbmPhRwoOtRP46YohWU7Y0b5rex9rl2YQa3SiHmcbZAw8WM5FT4Q70ha64gp p7XQTGo0qC/G+k+YnBcAj9DVcUTjBSv1ZvUV8GjVcbALD/RiCfDPzVgNTc9/QrLWymrZ Jf1M2NFzjHcFZmd8ij23JFemjSoknYx+FufreETTEVK2UqbN6DYq7o9vBcjuZRdqJOda TSSw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/RMHX2NqaiKiLLnT+b7O3zDOcy148VQAIaptjZ+2jOc=; b=hI7fBZaj+jURRCa6gBIUn40QTYyCCLNrMIWvYFBmgSadL5j+xNwovon+LMTsb4wgc8 HBFeZsW0xJnLwX7na2hSY62zYnNf/qWFqrAPPmV/5prJS8/yZslRn4CprSDq0ZL3fRR5 nF5ISRhAzl/1UTxI3EmZvQSfHCRB69tUKxxbhmLxeymB+TZUsSBWW4SV0J4jxkP9S3bs Vo8y89bY0Qj3rQj0j5upB8c2eJQ57hBM5O+iik/4A4lQUX+A6EpKkgLbjznG7k/T87O/ /sJzDI3sZgkBVzCwaJA9QiauWBoTHhUWusow86OqIH81gLUduW6hur59EFHfagtIBRou wuPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=/RMHX2NqaiKiLLnT+b7O3zDOcy148VQAIaptjZ+2jOc=; b=lQNC04VORJkyZcMdkOaZESqewVCx0AhuLJbYwiJ795N7EK2cPW3eTUMV8xJer/yK7x PE9WV4ZqefP1f8vSKZTT0mXr8q561I9W5OM4dPJTP7py46U7TK07VfE1ZajjRamsuVms zHIk8HXy2vpGOoDrbi326+6NjBQRpc1PSRK9vzQ6+QNxVg4U1A4LlscBDtY6QXtkL+mg 986F8dMTXOHAN0aV7c35p88OH8SB6GPOrl9gRKUYTOm4L7GIzR8Rzm7hd0mk3c32eQxV /TfdiTja7/CrcDHEnv5JRC0BpcYj6yo Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5306z91kyrWr9F61Gpu3Bz6Viwe8rFL1LW6kTmwiHdRhG1WaZimW bra/PDkSehlgV8krGIo3aTk= X-Google-Smtp-Source: ABdhPJwqbnfJ91I17KnwbLSAs+W8gYb0js7DtiInk2NPdtRPIOJAq1z61LBA02a8EBAlGQj9sLVDHQ== X-Received: by 2002:ac2:48a4:0:b0:471:fc7f:b54d with SMTP id u4-20020ac248a4000000b00471fc7fb54dmr21776866lfg.538.1651230436685; Fri, 29 Apr 2022 04:07:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3ba7:b0:472:4071:8567 with SMTP id g39-20020a0565123ba700b0047240718567ls2031029lfv.3.gmail; Fri, 29 Apr 2022 04:07:12 -0700 (PDT) X-Received: by 2002:a19:6a06:0:b0:472:100:47c6 with SMTP id u6-20020a196a06000000b00472010047c6mr19776264lfu.307.1651230432123; Fri, 29 Apr 2022 04:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651230432; cv=none; d=google.com; s=arc-20160816; b=EWhFFfqA7r0Tu5MzL+11zzTfjfIeQlg4oWWOSKNWOOAI0Tqtm+QSF/4hQJaXoBG5bg z44t0k1R3TmdMON/s7P7QT2qxZsu3zrLHrsVzdA4V0/veOxdKpHhpuav/lzdGfcosquY CxDUH5kGLqiwVobWrkZelZwLaGfKzqvdrefNV+kNBFF6bNamfmlmzxWzhcY6C7cuzA7K 3E1xKeInfUaadJtQRtZt9BujKoIv27ZecFPu7G+kmfdyNj4VRccIcIAmra932SiN3wQ/ FkSmXqSr9ztvnV20SG9tOWsu3+d8aGYoKuWSMhWZyw94C53cGAkE07idftR3dg1maRhJ s70g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=oKNjt8HNnxyaGv+jEgQMuJIRsowiziaWFt9kOtJfRFc=; b=udo37V29QXk9kLT+rRJizpGcjfNDJzR59vP2yYhB2LG/j/jzodLKWCLmwZ3D4AWdIE Kw+tgA/2nFBw2c3zra09T1bbTT3JrMPs4lxAsHXV31+U/KOAU6bdZgGtErPb5oXDpZ4J KuO4MlEqc08AFxQzkR5fuwyEemn9BV3L5oceZ/kFK2Aya/PeUxWLO6VsJ54m/N5SsVwa YvHDlM+hTvXn3cTOZncbzs89QmdML6n+EADDJz6SqoUm2IZTEPOQcrJiI37lYNqDVkRR Q8Cwit+EpndssynZ3D245IGVtKR0CfSRZtysrH4ia1nHtsWTTv0Iz3zBC0S27/kiGW/D yjxQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch. [130.92.0.84]) by gmr-mx.google.com with ESMTPS id p9-20020a056512138900b0047208583d26si338481lfa.11.2022.04.29.04.07.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 04:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) client-ip=130.92.0.84; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 9AC5350009F for ; Fri, 29 Apr 2022 13:07:10 +0200 (CEST) Thread-Topic: Develop Lua filters in Jupyer notebooks Thread-Index: AQHYWs0r7x6bVVDYm02WLRtd1/lWl60GvN/g In-Reply-To: <5a2975bc-df86-4c7b-be84-131425314474n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30503 Archived-At: --_000_9c1e208bffc24605a4f2b39c41bb6a73unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I don=E2=80=99t have a solution, but something like that would be awesome! Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von Gabriel L Gesendet: Donnerstag, 28. April 2022 08:57 An: pandoc-discuss Betreff: Develop Lua filters in Jupyer notebooks Hi, when writing Python filters for Pandoc, I can use a Jupyter notebook for in= teractive development: I can parse the document as a JSON and then manipula= te it: access to elements, print its attributes, try to modify it, etc. It'= s really convenient for tests while developing the filter. Is there a way to do the same thing with Lua filters? There are Lua kernels for Jupyter (ex. https://github.com/jupyter-xeus/xeus= -lua). I would be happy if I could parse a document (say in a file with nat= ive format as returned by pandoc -t native) in Lua and get the result as a = Pandoc object (https://pandoc.org/lua-filters.html#type-pandoc). Can I do i= t "easily" ? Alternatively, how can I develop Lua filters in an interactive way, as with= Python filters in Jupyter? Thanks. -- You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/5a2975bc-df86-4c7b-be84-131425314474n%40googlegroups.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/9c1e208bffc24605a4f2b39c41bb6a73%40unibe.ch. --_000_9c1e208bffc24605a4f2b39c41bb6a73unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I don=E2= =80=99t have a solution, but something like that would be awesome!

Denis

&nbs= p;

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Gabriel L
Gesendet: Donnerstag, 28. April 2022 08:57
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Develop Lua filters in Jupyer notebooks

 

Hi,

 

when writing Python filters for Pandoc, I can use a = Jupyter notebook for interactive development: I can parse the document as a= JSON and then manipulate it: access to elements, print its attributes, try= to modify it, etc. It's really convenient for tests while developing the filter.

 

Is there a way to do the same thing with Lua filters= ?

 

There are Lua kernels for Jupyter (ex. https://github.com/jupyter-xeus/xeus-lua). I would be happy if I could = parse a document (say in a file with native format as returned by pandoc -t= native) in Lua and get the result as a Pandoc object (https://pandoc.org/lua-filters.html= #type-pandoc). Can I do it "easily" ?

 

Alternatively, how can I develop Lua filters in an i= nteractive way, as with Python filters in Jupyter?

 

Thanks.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5a2975bc-df86-4c7b-be84-13= 1425314474n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc= -discuss/9c1e208bffc24605a4f2b39c41bb6a73%40unibe.ch.
--_000_9c1e208bffc24605a4f2b39c41bb6a73unibech_--