From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30502 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel L Newsgroups: gmane.text.pandoc Subject: Develop Lua filters in Jupyer notebooks Date: Wed, 27 Apr 2022 23:56:59 -0700 (PDT) Message-ID: <5a2975bc-df86-4c7b-be84-131425314474n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_308_1323435657.1651129019442" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18990"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQ7DQVVZEBBBPHVVCJQMGQEXVBBWXA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 28 08:57:04 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1njy5H-0004nG-J7 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 28 Apr 2022 08:57:03 +0200 Original-Received: by mail-oi1-f189.google.com with SMTP id bx41-20020a0568081b2900b003255f888196sf2162645oib.9 for ; Wed, 27 Apr 2022 23:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=E0JESQMrbxLqg7UUzlHXgDnrQ6NlDr3js7ziJRSh1ds=; b=W99dtvOWMcXWPsQO+Kv4x1+MD7uXTtkaCM+7pFp2AgtIVtm3Y4Bx34lZWyxH0rIBHQ GCiZPOhWOveb0iN3lLeAKSiTMgKla8hvJhFvc/1nR0mQyR+2uzKJ48qeLj3/iTO5/asX kCBd1jzcgBZXCr8mIknyF2hiU9caY1TNay3egJ46IBscQdn8+YAQ3p0ptaZXuhBkoU0y mo987cXVUJsNM757jdFQpRfXrdpvxBpv/bwXoGuuPrGpVUqsQiO/fI1NfmWi4IdiJGuD BIo5pQCTLS5WsW7JcOrWdTFqEnXApf3hSbcn6nCYbvd2XR1qwLX00wTdHx8fZIordn45 m8iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=E0JESQMrbxLqg7UUzlHXgDnrQ6NlDr3js7ziJRSh1ds=; b=jIoTDzCO2kfFJZQIqENQ8QcGkNG7he7JGapK5d7cGmurAgGf/SybbPoDchftqD0hL/ 9IpSknVeir31GoXvtT/xn2rf9bPFseqt0LCCNy/fq8qgzG74VgGd0UplM8lPqX79Cgz6 /2ZmW79wQfIKluGRXhM0BEAcxamzP/K9Ei8kuhssqsWHN61niSGLMZDmBmFqauo1NVTN 0f3p9aXUoq9zdUiIYl63FHQZPrOKao0rfjjVrp0vhS04uNfScZPTBXbCTPG9XYp9Ql13 kDp7ez9ZMo8Gf/zbqUe2TrRIjLBQBI91gVQuCVVTWk7OnxNwWJjsip0B1QK/MGtAiJrn jbRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=E0JESQMrbxLqg7UUzlHXgDnrQ6NlDr3js7ziJRSh1ds=; b=LiO90Zgj8nQfkUF1Bocro75Cb1lg1nf61X1MtX5/I6dtv6bSoeywCnM2E1EQHNDEDK SCEiFjRDG7vY1DRCR1i5Qh07Knsl1BWtvKkUCmTd/z/vFw2cuL75YwvDfDHoE9hCx7Nu PYGig7C+Efd9EyYPxrRd9sZ8CWi7ZnLpjv/fmQOPgQwgmgESrYDNusnYdnf060RuvBzU /NYVkXTZKh6A4HijwXAnfBKaql9eS9ctprMKhc9EDMtOADu9rsTaTv+pwiYJ2aXGiOqg +F6sVpbMbA4Ny82GSE0IsstxQvBeApJDGpELoyanMAznvV7I85F88yi9geFjzcXs/pEr gNdQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532FsFBHwEvboKHHN1RUY9MnKJUhzA7xQUunxwH2a2TNf2WY6X6l lCiYzH7zDh+xdhQwtOp5a2s= X-Google-Smtp-Source: ABdhPJyH0aSix93Vp8Ki0lGCOROACardH48BGYb1m/k8QXn0/Gc9Y/1U0aMuWo/RagpWcfxTuBBxyw== X-Received: by 2002:a05:6870:9615:b0:e7:c74:e993 with SMTP id d21-20020a056870961500b000e70c74e993mr13608779oaq.87.1651129022443; Wed, 27 Apr 2022 23:57:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:154:b0:e9:6abf:f9bb with SMTP id z20-20020a056871015400b000e96abff9bbls3217524oab.7.gmail; Wed, 27 Apr 2022 23:57:00 -0700 (PDT) X-Received: by 2002:a05:6870:2498:b0:e5:9555:2546 with SMTP id s24-20020a056870249800b000e595552546mr13596870oaq.292.1651129020003; Wed, 27 Apr 2022 23:57:00 -0700 (PDT) X-Original-Sender: gabriel.lewertowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:30502 Archived-At: ------=_Part_308_1323435657.1651129019442 Content-Type: multipart/alternative; boundary="----=_Part_309_1879804517.1651129019442" ------=_Part_309_1879804517.1651129019442 Content-Type: text/plain; charset="UTF-8" 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 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 email 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/5a2975bc-df86-4c7b-be84-131425314474n%40googlegroups.com. ------=_Part_309_1879804517.1651129019442 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

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

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

There are Lua kernels for Ju= pyter (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 pa= ndoc -t native) in Lua and get the result as a Pandoc object (https://pando= c.org/lua-filters.html#type-pandoc). Can I do it "easily" ?

<= /div>
Alternatively, how can I develop Lua filters in an interactive wa= y, as with Python filters in Jupyter?

Thanks.
<= /div>

--
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/5a2975bc-df86-4c7b-be84-131425314474n%40googlegroups.= com.
------=_Part_309_1879804517.1651129019442-- ------=_Part_308_1323435657.1651129019442--