[PYTHON] Bash in Jupyter

How to use Linux commands on Windows

Bash on Ubuntu on Windows, Mingw and [Cygwin] ](Https://ja.wikipedia.org/wiki/Cygwin) and Git can be installed to use some Linux commands on Windows. It will be like.

It seems that shell commands can be easily used from Jupyter. For example, if you have Git installed, you will see something like this:

jupyter_notebook


%%bash
ls /
>>>
ReleaseNotes.html
bin
cmd
dev
etc
git-bash.exe
git-cmd.exe
mingw64
proc
tmp
unins000.dat
unins000.exe
usr

The commands that can be used were in "C: \ Program Files \ Git \ usr \ bin" and so on.

It may be useful when you want to use grep, sed, xargs, etc. while writing Python.

that's all

Recommended Posts

Bash in Jupyter
Jupyter in Cloud9 IDE
Display HTML in Jupyter notebook
Multiprocessing error in Jupyter Notebook
Handling of quotes in [bash]
Settings often used in Jupyter
Embed wav files in Jupyter
Handle dates in Linux bash commands
Generate Jupyter notebook ".ipynb" in Python
Embed your favorite HTML in Jupyter
View graphs inline in Jupyter Notebook
Handle multiple python versions in one jupyter
Memory leak in Python Jupyter Lab (Notebook)?
Jupyter begins
Jupyter Tips 4
Jupyter nbextensions
[Bash / linux] Notes in case of trouble
Jupyter Tips 5
Jupyter, numpy, matplotlib notes used in reports
Create and run embulk config in Jupyter
Jupyter Tips 3
Jupyter Tips 2
How to execute commands in jupyter notebook
In Jupyter, add IPerl to the kernel.
Jupyter installation
Jupyter tricks
Let's run a Bash script in Java
Python garbled in Windows + Git Bash environment
Run PIFuHD in Windows + Anaconda + Git Bash environment
View Selenium screenshots in Jupyter without saving files
Coexistence of Anaconda 2 and Anaconda 3 in Jupyter + Bonus (Julia)
Y / n processing in bash, python and Go
In bash, "Delete the file if it exists".
Error running Jupyter Notebook in Anaconda virtual environment