From the course: Introducing Jupyter
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Line magic commands - Python Tutorial
From the course: Introducing Jupyter
Line magic commands
- [Instructor] Jupyter has a set of commands called magics. Magic commands are command-style tools which means the syntax is similar to Bash. They use flags for options and white space to delineate arguments. It's not the usual Python syntax in which you pass in parameters inside parentheses separated by commas. There are two types of magics. There are line magics and cell magics. Line magics are single line commands and often take parameters which will separate just using spaces. If you're used to working in a typical command line, many of the magics are simply those same commands that you can execute right inside Jupyter. Let's take a look at a few magics that will come in handy. The load command will load a file right into the cell. One thing to be aware of is that when you load it into a cell, it doesn't immediately execute it, so you'll have to re-execute the cell if you want the code to be available. This code has imported Pandas and also read in some data and stored it as a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.