<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h2
{mso-style-priority:9;
mso-style-link:"Titre 2 Car";
margin-top:2.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri Light",sans-serif;
color:#2F5496;
font-weight:normal;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.Titre2Car
{mso-style-name:"Titre 2 Car";
mso-style-priority:9;
mso-style-link:"Titre 2";
font-family:"Calibri Light",sans-serif;
color:#2F5496;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello dears Python devs,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I'm taking the initiative of writing to you for a question on Python REPL over Windows remote powershell session (winrm).</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As we’ve all known, Python REPL works well on local Linux, local Windows, and remote SSH session.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But for the remote Windows powershell session the REPL doesn’t work, when I type ‘’python” on the remote session, there’s nothing happened.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">===================================</p>
<div>
<h2>Steps to reproduce<o:p></o:p></h2>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"># 1/ pre-install python on server1 (server 1 is a windows os)<o:p></o:p></p>
<p class="MsoNormal"># 2/ from a powershell console on server0, type below 2 commands:</p>
<p class="MsoNormal">enter-pssession server1</p>
<p class="MsoNormal">python</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<h2>Expected behavior<o:p></o:p></h2>
<div>
<p class="MsoNormal"># The python >>> prompt appears<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<h2>Actual behavior<o:p></o:p></h2>
<p class="MsoNormal"># Nothing, it is still the powershell prompt</p>
</div>
<p class="MsoNormal">===================================</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem impacts all the python versions and all the windows versions.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This make me (and other windows guys) unable to use Python remotely, especially for the Windows Server Core version, which is a headless version (no GUI, so no remote desktop connection), the only way to connect to them is by the remote
powershell session.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can imagine the panic if Python REPL doesn’t work over SSH for Linux.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please kindly have a look, and tell at least why it doesn’t work ? Thanks.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">FYI, I’ve also opened a issue on Microsoft Powershell GitHub :</p>
<p class="MsoNormal"><a href="https://github.com/PowerShell/PowerShell/issues/7581">https://github.com/PowerShell/PowerShell/issues/7581</a></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<br>
<br>
Xiang ZHU<br>
<br>
</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>