<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.darkworld.network/index.php?action=history&amp;feed=atom&amp;title=DWShells%3APython_and_Tmux</id>
	<title>DWShells:Python and Tmux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.darkworld.network/index.php?action=history&amp;feed=atom&amp;title=DWShells%3APython_and_Tmux"/>
	<link rel="alternate" type="text/html" href="https://wiki.darkworld.network/index.php?title=DWShells:Python_and_Tmux&amp;action=history"/>
	<updated>2026-10-10T00:53:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.darkworld.network/index.php?title=DWShells:Python_and_Tmux&amp;diff=489&amp;oldid=prev</id>
		<title>Fizi: Protected &quot;DWShells:Python and Tmux&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]</title>
		<link rel="alternate" type="text/html" href="https://wiki.darkworld.network/index.php?title=DWShells:Python_and_Tmux&amp;diff=489&amp;oldid=prev"/>
		<updated>2026-10-05T20:23:33Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=DWShells:Python_and_Tmux&quot; title=&quot;DWShells:Python and Tmux&quot;&gt;DWShells:Python and Tmux&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:23, 6 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-488:rev-489 --&gt;
&lt;/table&gt;</summary>
		<author><name>Fizi</name></author>
	</entry>
	<entry>
		<id>https://wiki.darkworld.network/index.php?title=DWShells:Python_and_Tmux&amp;diff=488&amp;oldid=prev</id>
		<title>Fizi: Created page with &quot;&lt;!-- Page title: DWShells:Python_and_Tmux --&gt;&#039;&#039;&#039;Run Python and persistent sessions&#039;&#039;&#039;  Use approved Python environments and reconnect to portal-managed tmux sessions.  &#039;&#039;&#039;Last verified:&#039;&#039;&#039; 6 October 2026, against the current customer panel and service rules. Your effective dashboard permissions and assigned values take precedence over examples.  ← Documentation hub · [https://shells.darkworld.network/guides/python-and-sessions/ Visual websit...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.darkworld.network/index.php?title=DWShells:Python_and_Tmux&amp;diff=488&amp;oldid=prev"/>
		<updated>2026-10-05T20:23:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Page title: DWShells:Python_and_Tmux --&amp;gt;&amp;#039;&amp;#039;&amp;#039;Run Python and persistent sessions&amp;#039;&amp;#039;&amp;#039;  Use approved Python environments and reconnect to portal-managed tmux sessions.  &amp;#039;&amp;#039;&amp;#039;Last verified:&amp;#039;&amp;#039;&amp;#039; 6 October 2026, against the current customer panel and service rules. Your effective dashboard permissions and assigned values take precedence over examples.  &lt;a href=&quot;/index.php?title=DWShells:Documentation&quot; title=&quot;DWShells:Documentation&quot;&gt;← Documentation hub&lt;/a&gt; · [https://shells.darkworld.network/guides/python-and-sessions/ Visual websit...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Page title: DWShells:Python_and_Tmux --&amp;gt;&amp;#039;&amp;#039;&amp;#039;Run Python and persistent sessions&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Use approved Python environments and reconnect to portal-managed tmux sessions.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Last verified:&amp;#039;&amp;#039;&amp;#039; 6 October 2026, against the current customer panel and service rules. Your effective dashboard permissions and assigned values take precedence over examples.&lt;br /&gt;
&lt;br /&gt;
[[DWShells:Documentation|← Documentation hub]] · [https://shells.darkworld.network/guides/python-and-sessions/ Visual website guide]&lt;br /&gt;
&lt;br /&gt;
== Two ways to manage work ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Step&lt;br /&gt;
!What it means&lt;br /&gt;
|-&lt;br /&gt;
|01 · Python app&lt;br /&gt;
|Environment → uploaded script → managed Run script.&lt;br /&gt;
|-&lt;br /&gt;
|02 · Persistent terminal&lt;br /&gt;
|Session → attach in Shell Access → detach and return.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Check your plan ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Before you continue:&amp;#039;&amp;#039;&amp;#039; Python and development permissions vary by plan. Use only approved workloads. All programs share the shell’s resource limits. A persistent session does not override Keep, account expiry, process limits or service restarts.&lt;br /&gt;
&lt;br /&gt;
== A Python environment ==&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create an environment.&amp;#039;&amp;#039;&amp;#039; Open Python in Packages, choose an environment name and use Create environment.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Upload a script.&amp;#039;&amp;#039;&amp;#039; Select a UTF-8 .py file. The current portal upload limit is 64 KiB. Use Upload script, then select the uploaded script or its returned path.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Install required dependencies.&amp;#039;&amp;#039;&amp;#039; Enter the packages your script actually needs and use Install dependencies. Inspect the result before running the script.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Run and inspect.&amp;#039;&amp;#039;&amp;#039; Select the correct environment and script path relative to your home, then use Run script. Check View logs. Stop an unused application before changing or deleting its environment.&lt;br /&gt;
&lt;br /&gt;
== A simple first script ==&lt;br /&gt;
Save as hello.py locally, upload it and use it to check that your environment works:&amp;lt;pre&amp;gt;&lt;br /&gt;
print(&amp;amp;quot;Hello from my DWShells Python environment&amp;amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;This script prints one line and exits normally. A finished process is expected, not a failed always-on app. Deleting an unused environment keeps uploaded scripts, but you should still save independent copies.&lt;br /&gt;
&lt;br /&gt;
== Persistent terminal work ==&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create a session.&amp;#039;&amp;#039;&amp;#039; In the appropriate Packages session manager, choose a session name and use Create session. Available IRC clients are shown by the panel.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Attach in Shell Access.&amp;#039;&amp;#039;&amp;#039; Use Copy attach command and run the exact command in your browser terminal or SSH connection. Portal-managed sessions use a dedicated tmux socket.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Detach and return.&amp;#039;&amp;#039;&amp;#039; Press Ctrl+B, release, then D to detach from tmux. Reconnect later and run the same attach command. Closing the session is different from detaching and terminates that session’s work.&lt;br /&gt;
&lt;br /&gt;
== Example attach command ==&lt;br /&gt;
For a portal-managed session named ircsession:&amp;lt;pre&amp;gt;&lt;br /&gt;
tmux -S ~/.dwshell-tmux.sock attach -t ircsession&lt;br /&gt;
&amp;lt;/pre&amp;gt;Use the name and command copied from your panel. A plain tmux attach can look for a different socket and miss the portal-managed session.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!What you see&lt;br /&gt;
!What to do&lt;br /&gt;
|-&lt;br /&gt;
|Python is unavailable&lt;br /&gt;
|Check your plan and ask staff if your intended work needs additional permission.&lt;br /&gt;
|-&lt;br /&gt;
|Module not found&lt;br /&gt;
|Install the dependency in the selected environment and inspect its installation output.&lt;br /&gt;
|-&lt;br /&gt;
|Script exits immediately&lt;br /&gt;
|Read logs. A short script may have completed normally.&lt;br /&gt;
|-&lt;br /&gt;
|No tmux session found&lt;br /&gt;
|Check selected shell, session name and the dedicated socket in the copied command.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Environment, script and process ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Item&lt;br /&gt;
!Meaning&lt;br /&gt;
|-&lt;br /&gt;
|Environment&lt;br /&gt;
|The selected Python environment and its installed dependencies&lt;br /&gt;
|-&lt;br /&gt;
|Script&lt;br /&gt;
|A uploaded source file; choose its path relative to your home&lt;br /&gt;
|-&lt;br /&gt;
|Process&lt;br /&gt;
|The currently running invocation; a short script can exit normally&lt;br /&gt;
|}&lt;br /&gt;
Choose the same environment for dependency installation and script execution. Avoid pasting secrets into script source that you intend to share.&lt;br /&gt;
&lt;br /&gt;
== Detach, exit and close ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Detach&amp;#039;&amp;#039;&amp;#039; leaves the tmux session available for reattachment. &amp;#039;&amp;#039;&amp;#039;Exit&amp;#039;&amp;#039;&amp;#039; ends the program or shell you are using. &amp;#039;&amp;#039;&amp;#039;Close session&amp;#039;&amp;#039;&amp;#039; terminates that managed session&amp;#039;s work. Persistent sessions still depend on account status, Keep, resource limits and host availability; they are not an uptime guarantee.&lt;br /&gt;
&lt;br /&gt;
== Rules and support ==&lt;br /&gt;
This guide describes how to use the service; it does not replace [[DWShells:Signup and Rules|Signup and Rules]]. Join &amp;#039;&amp;#039;&amp;#039;#DWShells&amp;#039;&amp;#039;&amp;#039; on &amp;lt;code&amp;gt;irc.darkworld.chat&amp;lt;/code&amp;gt; using TLS port &amp;#039;&amp;#039;&amp;#039;6697&amp;#039;&amp;#039;&amp;#039; for help. Use [https://panel.shells.darkworld.network/customer/ the customer portal] for your actual status and connection details. Never share credentials or recovery links.&lt;br /&gt;
&lt;br /&gt;
[[DWShells:Documentation|Back to documentation]]&lt;/div&gt;</summary>
		<author><name>Fizi</name></author>
	</entry>
</feed>