From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kJKKBzH13172IQAA0tVLHw (envelope-from ) for ; Tue, 09 Jun 2020 20:46:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gDlXAzH1316mJAAAB5/wlQ (envelope-from ) for ; Tue, 09 Jun 2020 20:46:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6121A940363 for ; Tue, 9 Jun 2020 20:46:40 +0000 (UTC) Received: from localhost ([::1]:50130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jil8n-00058I-U9 for larch@yhetil.org; Tue, 09 Jun 2020 16:46:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jil8K-00057v-Vy for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 16:46:09 -0400 Received: from w1.tutanota.de ([81.3.6.162]:42114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jil8G-0004BN-Ko for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 16:46:08 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 9E382FA0036 for ; Tue, 9 Jun 2020 20:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1591735559; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=59TbF7O+TEmgdOytR1mWkD9WJutmM+loncVtI0G1+bU=; b=ySRgJIaIeQjMRzYQr72ztVfHOJBRf+lwnF5ZQpxpvMGrWRPXfeAR4gS754ltzRD+ uoh/U5MJXsIsLIikaG75yiHMA2NJ5ZJeWygPy1WdNNYWnw9WoKYoOhlLagXjIGnVsU7 PTikddU/havGR07N6rC/fDxb+2OL7CY9wz6baGdCHPSu+oH2kGPVsSSJrKD6ijN5vrg xZeGL4HUi3f7rjDCcYVSGVzlVXTkRp/+1wF6bTBo1+8ANww0E/dENSrYYWSLb3G2OXj 5i09YwMAnIEVXZ8aT45hTVqubM74pk3miMxu5+nToXFZ40ZwDOe1bqCT3b3QZd/rewq ll3P3tyDWQ== Date: Tue, 9 Jun 2020 22:45:59 +0200 (CEST) To: Emacs Orgmode Message-ID: References: <87tuzofg4h.fsf@gmail.com> <66704027-618f-afdb-112d-8fdeeb432a53@linuxha.com> Subject: FWD: Re: FWD: Org-Babel Support for Powershell MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20233_19246789.1591735559631" Received-SPF: pass client-ip=81.3.6.162; envelope-from=stanislaw_lem@tutanota.com; helo=w1.tutanota.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/09 16:45:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: stanislaw_lem@tutanota.com From: stanislaw_lem--- via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tutanota.com header.s=s1 header.b=ySRgJIaI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: tx/ySk2d0Ko1 ------=_Part_20233_19246789.1591735559631 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I thought about four possible solutions to include Powershell 7 in Emacs. I understand that Powershell 5.1 is not Open Source. But is is not the case with Powershell 7. I share my idea with ncherry@linuxha.com below. I am still not very familiar with the vast emacs universe. But I am very good in generating ideas. Unfortunately, I am not very confident to get my ideas working on my own. Yours sincerely Stanislaw -- Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: https://tutanota.com Date: Jun 9, 2020, 22:37 From: stanislaw_lem@tutanota.com To: ncherry@linuxha.com Subject: Re: FWD: Org-Babel Support for Powershell > Hi, > > recently, I got some hints from Google Bing. Jupyter notebook offer a powershell kernel. Jupyter notebook can be accessed from Emacs. I thought of several ways to include Powershell in emacs: > > I. Use Powershell kernel in Jupyter notebook. Use Emacs to access Jupyter notebook > > The Powershell kernel is community-driven and Azure actually use it. The Powershell kernel is used with Anaconda - that is not light-weight. > > https://github.com/Jaykul/Jupyter-PowerShel > l > > Emacs supports w3m - a text browser - Microsoft recommends installing Windows Server OS without GUI, because you can avoid update problems. > > II. Adapt polymode in Emacs for Powershell > > But I think, we need something like webmode in order to mix different code snippets. I take a look how polymode work in emacs this weekend. > > III. Use language-agnostic literate programming tool > > I got another idea to find a very simple language-agnostic literate programming tool. > > https://github.com/zyedidia/Literate > > This little language-agnostic tool looks very simple - maybe it can be adapt for powershell. It used awk to extract the code snippets inside the code fences > > https://github.com/0atman/blaze > > IV. Embedding Powershell in Python or Ruby and make configuration readable with reverse literate programming tool > > Another idea of mine is embedding Powershell code in Python and Ruby code and make it readable with a reverse literate programming tool: > > Python support: > https://github.com/7enderhead/antiweb > > Ruby support: > https://github.com/orenbenkiki/codnar > > I am not very familiar with all these tools. Maybe someone has daily experience with these toolsand can publish his configurations. > > Yours sincerely > > Stanislaw > > -- > Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: > https://tutanota.com > > > Jun 9, 2020, 15:08 by ncherry@linuxha.com: > >> On 6/6/20 10:01 AM, stardiviner wrote: >> >>> I remember already there are some ob-powershell relative projects. You might >>> want to work and improve features on those work. And integrate it into Org Mode. >>> >>> - https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc >>> >> >> Using this in Windows 10. >> >> I found that I've had to change: >> >> "-NoLogo -NonInteractive")) >> >> to >> >> "-NoLogo -NonInteractive -ExecutionPolicy Bypass ")) ;;; need to avoid MS no scripts policy >> >> I needed to user powershell to get around some of the stdout issues with cygwin >> and mgwin. >> >> I've not used powershell before so I'm still learning it. Definitely not in >> Unix anymore. Thirty five years of Unix and DOS makes this a very strange >> beast. >> >>> - https://github.com/togakangaroo/ob-pwsh >>> >> >> I hadn't seen this one, I'll take a look at it later. >> >> -- >> Linux Home Automation Neil Cherry ncherry@linuxha.com >> http://www.linuxha.com/ Main site >> http://linuxha.blogspot.com/ My HA Blog >> Author of: Linux Smart Homes For Dummies >> > > ------=_Part_20233_19246789.1591735559631 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I thought about four possible solutio= ns to include Powershell 7 in Emacs. I understand that Powershell 5.1 is no= t Open Source. But is is not the case with Powershell 7.

=
I share my idea with nche= rry@linuxha.com below. I am still not very familiar with the vast emacs= universe. But I am very good in generating ideas. Unfortunately, I am not = very confident to get my ideas working on my own.

<= div>Yours sincerely

Stanislaw
--=
Securely sent with Tutanota. Get your own encrypted, ad-fr= ee mailbox:
https://tutanota.com


Date: Jun 9, 2020, 22:37
From: stanislaw_le= m@tutanota.com
To: ncherry@linuxha.com
Subject:= Re: FWD: Org-Babel Support for Powershell

Hi,

rec= ently, I got some hints from Google Bing. Jupyter notebook offer a powershe= ll kernel. Jupyter notebook can be accessed from Emacs. I thought of severa= l ways to include Powershell in emacs:

I. Use = Powershell kernel in Jupyter notebook. Use Emacs to access Jupyter notebook=

The Powershell kernel is community-driven and= Azure actually use it. The Powershell kernel is used with Anaconda - that = is not light-weight.


Emacs supports w3m - a text browser = - Microsoft recommends installing Windows Server OS without GUI, because yo= u can avoid update problems.

II. Adapt polymo= de in Emacs for Powershell

But I think, we nee= d something like webmode in order to mix different code snippets. I take a = look how polymode work in emacs this weekend.

= III. Use language-agnostic literate programming tool

I got another idea to find a very simple language-agnostic literate = programming tool.


This little = language-agnostic tool looks very simple - maybe it can be adapt for powers= hell. It used awk to extract the code snippets inside the code fences


IV. Embedding Powershell in Python or Ruby and= make configuration readable with reverse literate programming tool

Another idea of mine is embedding Powershell code in = Python and Ruby code and make it readable with a reverse literate programmi= ng tool:



I am not very familiar with all these tools. May= be someone has daily experience with these toolsand can publish his configu= rations.

Yours sincerely

Stanislaw

--
Securely = sent with Tutanota. Get your own encrypted, ad-free mailbox:
https://tutanota.com


Jun 9, 20= 20, 15:08 by ncherry@linuxha.com:
On 6/6/20 10:01 AM, stardiviner wrote:
=
I remember already there are some ob-powershell relative projects. You= might
want to work and improve features on those work. And i= ntegrate it into Org Mode.

- https://gist.gith= ub.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc
=
Using this in Windows 10.

I fou= nd that I've had to change:

"-NoLogo -NonInter= active"))

to

"-No= Logo -NonInteractive -ExecutionPolicy Bypass ")) ;;; need to avoid MS no s= cripts policy

I needed to user powershell to g= et around some of the stdout issues with cygwin
and mgwin.

I've not used powershell before so I'm still lea= rning it. Definitely not in
Unix anymore. Thirty five years = of Unix and DOS makes this a very strange
beast.
- https://github.com/togakangaroo/ob-pwsh
I hadn't seen this one, I'll take a look at it later.
=

--
Linux Home Automation Neil Ch= erry ncherry@linuxha.com
http://www.linuxha.com/ = Main site
http://linuxha.blogspot.com/ = My HA Blog
Author of: =09Linux Smart Homes = For Dummies


------=_Part_20233_19246789.1591735559631--