Skip to content

vatlab/sos-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version Build Status Codacy Badge Coverage Status

sos-bash

SoS extension for Bash scripts. Please refer to SoS Homepage for details.

Installation

  • If you are using conda, you can install sos-bash with command

    conda install sos-bash -c conda-forge
    

    This will install sos-bash (and sos-notebook if needed), bash (linux and Mac) or m2-bash (windows), and calysto_bash kernel. The calysto_bash kernel is used instead of bash_kernel because the former supports all operating systems including windows.

  • If you are not using conda, you can install sos-bash with command

    pip install sos-bash
    

    but you will have to make sure that your system has bash, and a Jupyter kernel for bash. sos-bash currently supports bash_kernel and calysto_bash kernel.

Usage

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.