SoS extension for Bash scripts. Please refer to SoS Homepage for details.
-
If you are using conda, you can install
sos-bash
with commandconda install sos-bash -c conda-forge
This will install
sos-bash
(andsos-notebook
if needed),bash
(linux and Mac) orm2-bash
(windows), andcalysto_bash
kernel. Thecalysto_bash
kernel is used instead ofbash_kernel
because the former supports all operating systems includingwindows
. -
If you are not using conda, you can install
sos-bash
with commandpip install sos-bash
but you will have to make sure that your system has
bash
, and a Jupyter kernel forbash
.sos-bash
currently supportsbash_kernel
andcalysto_bash
kernel.
In a SoS notebook, you should be able to see Bash
in the drop down box, and execute bash commands in it. You can use magics %get
and %put
to exchange variables between bash and other kernels but all variables will be converted to string because bash
only supports strings.