简体   繁体   中英

% sign before library in Ipython

Does anyone know what the % sign in front of a library means in Ipython?
In a caffe tutorial there are the following first lines of a python script:

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

What does the third row %matplotlib inline do here?

A leading % means it is a built-in magic command in iPython

In this case, %matplotlib inline enables the inline backend for usage with the IPython Notebook

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM