15
Bash and IPython Notebook Courtesy by Ma5hias Haimel

bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

BashandIPythonNotebook

CourtesybyMa5hiasHaimel

Page 2: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

WhatisBash

•  Bourne-againshell– Linux/OSXoperaBngsystem(OS)(default)–  InteractwithOSusingcommands– Command->similartomouseclick– Sendcommandoncommand-line(“blackbox”)

•  BashScript– Listofcommandsinafile

Page 3: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

Bashbasics

 echo pwd(printworkingdirectory)

 cd(changedirectory)

Page 4: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

Bashbasics

 ls(listitemsincurrentfolder)

 ls-l(listinlongformatwithmoredetails)

Page 5: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

Bashhelp

> manls

Page 6: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

Bashhelp

> cp--help

Page 7: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

IPythonNotebook

•  IPython– commandshellforinteracBvecompuBng– mulBpleprogramminglanguages

•  IPythonNotebook– Web-basedinteracBvecomputaBonalenvironment

– CombinedocumentaBon,codeandresults

Page 8: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

IpythonNotebook

•  StartIPythonnotebookfromcommandline?> ipython--help

Page 9: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

IpythonNotebook

•  StartIPythonnotebookfromcommandline?> ipython--help

Page 10: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

IpythonNotebook

•  StartIPythonnotebookfromcommandline!> ipythonnotebook

Page 11: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,

IPythonnotebook

•  StartIPythonnotebookfromcommandline> ipythonnotebook

Page 12: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,
Page 13: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,
Page 14: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,
Page 15: bash ipython intro - University of Malta€¦ · A Python shell with automatic history (input and output), dynamic object introspection, easier configuration, command completion,