i.e. '%%bash' instead of '%bash'

this page seems to indicate that you're going to want two percent signs to utilize the bash script magic.

edit. tailored answer to no longer be to specific errawr message. when i run %lsmagic i get the following:

%lsmagic
available line magics:
%alias  %alias_magic  %autocall  %automagic  %autosave  %bookmark  %cd %clear  %cls  %colors  %config  %connect_info  %copy  %ddir  %debug  
%dhist  %dirs  %doctest_mode  %echo  %ed  %edit  %env  %gui  %hist  
%history  %install_default_config  %install_ext  %install_profiles %killbgscripts  %ldir  
%less  %load  %load_ext  %loadpy  %logoff  %logon  %logstart  %logstate  %logstop  %ls  %lsmagic  %macro  %magic  
%matplotlib  %mkdir  %more  %notebook  %page  %pastebin  %pdb  %pdef  %pdoc  %pfile  %pinfo  %pinfo2 
%popd  %pprint  %precision  
%profile  %prun  %psearch  %psource  %pushd  %pwd  %pycat  %pylab  %qtconsole  %quickref  %recall  %rehashx 
%reload_ext  %ren  %rep  %rerun  %reset  %reset_selective  %rmdir  %run  %save  %sc  %set_env  %store  %sx  
%system  %tb  %time  %timeit  %unalias  %unload_ext  %who  %who_ls  %whos  %xdel  %xmode
available cell magics:
%%!  %%html  %%svg  %%bash  %%capture  %%cmd  %%debug  %%file  %%html  %%javascript  
%%latex  %%perl  %%prun  %%pypy  %%python  %%python2  %%python3  %%ruby  %%script  %%sh  %%svg  %%sx  %%system  
%%time  %%timeit  %%writefile
automagic is on, % prefix is not needed for line magics.

the following command works:

%%cmd

buruzaemon nailed it.

  • How to change Jupyter Notebook (Windows) shell to bash
  • Jupyter Notebook from Git Bash Here
  • Bash command won't execute in Jupyter Notebook
  • Jupyter notebook - Couldn't find program: 'bash'
  • bash script to run jupyter notebook in virtualenv
  • Intermediate bash output in Jupyter notebook
  • Jupyter Notebook to set environment variable from bash subprocess
  • Set Jupyter Notebook password in bash script through environment variable
  • Bash cell magic (%%) giving "command not found" error in Jupyter notebook (Windows 7)
  • Running a program iteratively on subfolders using the find function in bash
  • How to print contents of cells in Jupyter Notebook with Bash
  • starting jupyter notebook from ubuntu's bash installed on windows 10
  • Find methods and methods call of C program using a bash script
  • Calling a bash function with arguments stored in bash file script gives CalledProcessError in a Jupyter notebook
  • Cannot print bash variables in Jupyter notebook cell
  • How can I check if a program exists from a Bash script?
  • Find and kill a process in one line using bash and regex
  • Find and Replace Inside a Text File from a Bash Command
  • How to find whether or not a variable is empty in Bash
  • How do I find the number of arguments passed to a Bash script?
  • Bash function to find newest file matching pattern
  • How to only find files in a given directory, and ignore subdirectories using bash
  • How to set env variable in Jupyter notebook
  • How to find out where alias (in the bash sense) is defined when running Terminal in Mac OS X
  • Capturing output of find . -print0 into a bash array
  • How can I process the results of find in a bash script?
  • "Couldn't find a file descriptor referring to the console" on Ubuntu bash on Windows
  • How to run a bash script from C++ program
  • Use bash to find first folder name that contains a string
  • Find files of specified size using bash in Unix
  • More Query from same tag

  • osx monday date current week bash
  • Can not exploit shellshock vulnerability for all files
  • How to use arithmetic in an if statement for Bash
  • pipe and grep in Docker container seems to get blocked
  • Bash script to safely create symlinks?
  • How to deal with long strings and still get a well formatted code in bash?
  • rm -rf equivalent on Windows batch script
  • Rename several gopro files
  • How to select random node with xmlstarlet in bash?
  • Compare files to get string before special character
  • How do I copy columns of two files as rows of a third file
  • Garbled shell newlines after concurrent script execution
  • Forcing Base 10's working improperly in BASH
  • How to assign a heredoc value to a variable in Bash?
  • tail the last modified file and monitor for new files in bash
  • Ubuntu 18.04 - Add new user and initialize it
  • shell script "set -e" with readonly variable
  • Parsing input files within python script
  • Missing argument in bash getopts sets argument to next option
  • How to execute bash code for each iteration of the find command?
  • Mysteries IFS behavior
  • Can not recognize java command when using git bash
  • jobs -l is not printing output to a file when written inside a script
  • Read command not working as expected because of While
  • Can't save console output as Ruby variable
  • Bash script to check running process
  • Replacing whitespace with single tab unless in double quotes - Part II
  • Weird behaviour of $BASH_SOURCE
  • SNMP Network script
  • bash and POSIX shell difference in dot command
  •