emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stanislaw_lem--- via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: FWD: Re: FWD: Org-Babel Support for Powershell
Date: Tue, 9 Jun 2020 22:45:59 +0200 (CEST)	[thread overview]
Message-ID: <M9PpHGl--3-2@tutanota.com> (raw)
In-Reply-To: M9PnDEh--3-2@tutanota.com

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


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

 Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: 

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 <https://github.com/Jaykul/Jupyter-PowerShell>> l <https://github.com/Jaykul/Jupyter-PowerShell>
> 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

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

  parent reply	other threads:[~2020-06-09 20:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <M90MAnN--3-2@tutanota.com>
2020-06-05 21:32 ` FWD: Org-Babel Support for Powershell stanislaw_lem--- via General discussions about Org-mode.
2020-06-06 10:43   ` Russell Adams
2020-06-06 23:38     ` Gustav Wikström
2020-06-07 11:47       ` Russell Adams
2020-06-07 12:01         ` tomas
2020-06-06 14:01   ` stardiviner
2020-06-09 13:08     ` Neil Cherry
     [not found]       ` <M9PnDEh--3-2@tutanota.com>
2020-06-09 20:45         ` stanislaw_lem--- via General discussions about Org-mode. [this message]
2020-09-05  7:49   ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=M9PpHGl--3-2@tutanota.com \
    --to=emacs-orgmode@gnu.org \
    --cc=stanislaw_lem@tutanota.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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 read-only IMAP folder(s) and NNTP newsgroup(s).