public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Develop Lua filters in Jupyer notebooks
@ 2022-04-28  6:56 Gabriel L
       [not found] ` <5a2975bc-df86-4c7b-be84-131425314474n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel L @ 2022-04-28  6:56 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1602 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* AW: Develop Lua filters in Jupyer notebooks
       [not found] ` <5a2975bc-df86-4c7b-be84-131425314474n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-04-29 11:07   ` denis.maier-NSENcxR/0n0
  0 siblings, 0 replies; 2+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2022-04-29 11:07 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]

I don’t have a solution, but something like that would be awesome!
Denis

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 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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<https://groups.google.com/d/msgid/pandoc-discuss/5a2975bc-df86-4c7b-be84-131425314474n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/9c1e208bffc24605a4f2b39c41bb6a73%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 5354 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-29 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28  6:56 Develop Lua filters in Jupyer notebooks Gabriel L
     [not found] ` <5a2975bc-df86-4c7b-be84-131425314474n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-04-29 11:07   ` AW: " denis.maier-NSENcxR/0n0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).