- 01Python app
Environment → uploaded script → managed Run script.
- 02Persistent terminal
Session → attach in Shell Access → detach and return.
Check your plan
A Python environment
Create an environment
Open Python in Packages, choose an environment name and use Create environment.
Upload a script
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.
Install required dependencies
Enter the packages your script actually needs and use Install dependencies. Inspect the result before running the script.
Run and inspect
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.
A simple first script
Save as hello.py locally, upload it and use it to check that your environment works:
print("Hello from my DWShells Python environment")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.
Persistent terminal work
Create a session
In the appropriate Packages session manager, choose a session name and use Create session. Available IRC clients are shown by the panel.
Attach in Shell Access
Use Copy attach command and run the exact command in your browser terminal or SSH connection. Portal-managed sessions use a dedicated tmux socket.
Detach and return
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.
Example attach command
For a portal-managed session named ircsession:
tmux -S ~/.dwshell-tmux.sock attach -t ircsessionUse the name and command copied from your panel. A plain tmux attach can look for a different socket and miss the portal-managed session.
Troubleshooting
| What you see | What to do |
|---|---|
| Python is unavailable | Check your plan and ask staff if your intended work needs additional permission. |
| Module not found | Install the dependency in the selected environment and inspect its installation output. |
| Script exits immediately | Read logs. A short script may have completed normally. |
| No tmux session found | Check selected shell, session name and the dedicated socket in the copied command. |
Read this topic in the wiki ↗ · Documentation hub ↗
Reference and helpChecked against the current customer-panel implementation and DWShells signup and rules. For assigned values and eligibility, use your dashboard. Need help? Join #DWShells on DarkWorld IRC or contact staff. Do not send credentials.