From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31419 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Meik Hellmund Newsgroups: gmane.text.pandoc Subject: Re: ANSI escape sequences in jupyter notebook output cells Date: Wed, 21 Sep 2022 03:14:12 -0700 (PDT) Message-ID: <5f877bed-697b-481c-9604-c5d69168eda9n@googlegroups.com> References: <956e8385-8b5f-49de-a74a-cc62f84be526n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2637_227058011.1663755252888" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19597"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYPJG4RWYHRB5OHVOMQMGQEGP75EPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 21 12:14:17 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f187.google.com ([209.85.160.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oawkC-0004xS-UC for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 21 Sep 2022 12:14:16 +0200 Original-Received: by mail-qt1-f187.google.com with SMTP id u9-20020a05622a14c900b0035cc7e8cbaesf3806829qtx.19 for ; Wed, 21 Sep 2022 03:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date; bh=rAR+BQQcs15vV4mEpR2L0C83d6F8rePoKbj3voQa4Nc=; b=HnPyOOg0/UWaz5Yg3DBZLldk5Xjt5/tGXv/W1611JII7qFE30vJMyg8FsIixJjRa1W Jnhga3rI5fmLbDmEoLgjkDUZa4ayheqO26r5B/M3geb95o2EAvB+0pWumeddj+oFPYB3 Z7zpFl5RWAhVhkGOeEd8RAY3Jal57AVk9u7chxBIoPZGaCxslndJf6P1q8l0tJg3n0SB vYMlrptluJxU7c2xhvNTotgWOfyI3UGdAQ2pEvlFroafPhFIhKj8kR4W/iUXPdtJ8ktW XBDi1/7vvHBxfphoJ5KvIEH5SUveZa0v7VPgurmOtQTJ/YyMbR1bAA3n7m4JkejoY1Zv drsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date; bh=rAR+BQQcs15vV4mEpR2L0C83d6F8rePoKbj3voQa4Nc=; b=WqN/6OkaXL+BT+6/GmfuKUXabb8gnDwf9vEFrM0ma+h4B1M1tjG2XPOTboPYJs5eIU zcHs8qIqggHvboJSMRu+2H0RkhgW9fv9m/WgDjOOCmkClmyHBfkPWbGXocS05TG8C/F3 FR4mR34zzwL6qWC98/Fen6IezIm+wPzSdSrVNzPEO3RtnQRTdndeIoKRNadg1pRROofl 0k1wAMwqQiXmI6MHya72+VipGp7KYJNthoiEOveWlTgye2BVovls/9aMlr/V3qM6Zc3k 5/p4FOx5+R5xmYw5rFpjt4OIzXwx9rgSTWGa+DFFm1Zj+a3G3wBUsci+GiaBDuiA/J/T 7ZeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date; bh=rAR+BQQcs15vV4mEpR2L0C83d6F8rePoKbj3voQa4Nc=; b=xTxiuAtOXAT9e/P9Nye01W/Qze4xHSvl2X1WNZCU/gHxsndiO8etMT8Oo1X1QQRAWj arRla/SKv81aSC20C/Sg6UWjCuVXqcDQDSImvpljtSpUtWrYamxD3Hw4z/nkxrKg85Sf J/pNAV+i+G2jX+Emnhqh/MMROBMjODiB1TuUaIAGNoiBvaQjzGzmpkACWHnRqteptSip nRKukdrcc/i1UdG5RVTva1SgMktJ1OCrRIu6JqROQWnfIt/zdsDb+J7gIl5B7IVMM/Bu 08oPVIEHBpxn42TT0C0TAnSMlOlyvHXBSJ0/5/W7h/2dvFuL03Ro0uqTqHEEADNHgclr DkLA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2N2JCqp0pheUoCWz7rTgJqU1OZkFqPG/vDJ1aSWM71LJNphLlP 0yrIv/dOdqhb//piBoQiHFk= X-Google-Smtp-Source: AMsMyM68+05lwDvYnxl0DLvfWVUmZtqwPg5o1NsE++OO+qqP0flTMhvLeylR4SXaXFQtSIfb2OuGOw== X-Received: by 2002:ad4:5d69:0:b0:4ad:6b45:822b with SMTP id fn9-20020ad45d69000000b004ad6b45822bmr2758540qvb.104.1663755255899; Wed, 21 Sep 2022 03:14:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:b24b:0:b0:4aa:aada:2db with SMTP id k11-20020a0cb24b000000b004aaaada02dbls5760513qve.1.-pod-prod-gmail; Wed, 21 Sep 2022 03:14:13 -0700 (PDT) X-Received: by 2002:a05:6214:20a8:b0:4ac:b917:ccae with SMTP id 8-20020a05621420a800b004acb917ccaemr22081785qvd.85.1663755253399; Wed, 21 Sep 2022 03:14:13 -0700 (PDT) In-Reply-To: X-Original-Sender: Meik.Hellmund-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:31419 Archived-At: ------=_Part_2637_227058011.1663755252888 Content-Type: multipart/alternative; boundary="----=_Part_2638_618270310.1663755252888" ------=_Part_2638_618270310.1663755252888 Content-Type: text/plain; charset="UTF-8" Ah, thank you! I totally misunderstood the meaning of `--ipynb-output`. So I can start playing around with a lua filter. I want to use this filter with Quarto. Then I will need the original meaning/effect of `ipynb-output=best`, too. Rewrite your ` filterIpynbOutput` function in Lua? Best regards, Meik fiddlosopher schrieb am Dienstag, 20. September 2022 um 20:01:46 UTC+2: > The ANSI escapes are stripped out of the code block unless the output > format is ipynb OR `--ipynb-output=all` is used. > So, if you use that command-line option, you could write a filter that > does something with the ANSI escapes. > > -- 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/5f877bed-697b-481c-9604-c5d69168eda9n%40googlegroups.com. ------=_Part_2638_618270310.1663755252888 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah, thank you! I  totally misunderstood the meaning of `--ipynb-o= utput`. So  I can start playing around with a lua filter.
I = want to use this filter with Quarto. Then I will  need  the origi= nal meaning/effect of `ipynb-output=3Dbest`, too. 
Rewrite y= our ` filterIpynbOutput` function in Lua?

Best reg= ards, Meik



fiddlosopher schrieb am Dienstag, 20. Septem= ber 2022 um 20:01:46 UTC+2:
The ANSI escapes are stripped out of the code block unless th= e output format is ipynb OR `--ipynb-output=3Dall` is used.
So, if you use that command-line option, you could write a filter that = does something with the ANSI escapes.

--
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/5f877bed-697b-481c-9604-c5d69168eda9n%40googlegroups.= com.
------=_Part_2638_618270310.1663755252888-- ------=_Part_2637_227058011.1663755252888--