[emwin@login2 ~]$ echo $PATH | grep -o : | wc -l 8 [emwin@login2 ~]$ env | wc -l 75
[emwin@n0398 jupyter-f26]$ hostname n0398.talapas.uoregon.edu [emwin@n0398 jupyter-f26]$ ls /cephfs # This is the remote storage location for research groups ls: cannot access '/cephfs': No such file or directory [emwin@n0398 jupyter-f26]$ python3 --version Python 3.15.2 [emwin@n0398 jupyter-f26]$ python --version Python 3.15.2 [emwin@n0398 jupyter-f26]$ echo $PATH | grep -o : | wc -l 21 [emwin@n0398 jupyter-f26]$ env | wc -l 368 [emwin@n0398 jupyter-f26]$ module list Currently Loaded Modules: 1) latex/20250228 2) miniconda3/20260319 [emwin@n0398 jupyter-f26]$ module purge Warning: Conda environment still active. Run 'conda deactivate' before unloading. [emwin@n0398 jupyter-f26]$ echo $PATH | grep -o : | wc -l 16 [emwin@n0398 jupyter-f26]$ env | wc -l 348
[emwin@login2 ~]$ ls /cephfs # This is the remote storage location for research groups ... [emwin@login2 ~]$ python3 --version Python 3.6.8 [emwin@login2 ~]$ python --version -bash: python: command not found [emwin@login2 ~]$ module list No modules loaded [emwin@login2 ~]$ module purge [emwin@login2 ~]$ echo $PATH | grep -o : | wc -l 8
This is a raw cell.
You can suppress the returned value by adding a semicolon at the end -- if you're a matlab user this will be familiar
There's a shortcut to get the last output: _
get_ipython().run_line_magic('pinfo', 'In') get_ipython().run_line_magic('pinfo', 'Out') get_ipython().run_line_magic('pinfo', 'print') get_ipython().run_line_magic('pinfo', '%logstart') get_ipython().run_line_magic('logstart', '') get_ipython().run_line_magic('logstop', '')
Put this all together and you can mix python and shell commands to make ungodly bashpysh like this: