When converting jupyter notebooks into python file, execution would be blocked by incompatible pip installation command in jupyter notebooks.
In jupyter notebooks, those lines are:
! pip install matplotlib% matplotlib inline
When transformed into python file, those lines are changed into:
get_ipython().system('pip install matplotlib')get_ipython().run_line_magic('matplotlib', 'inline')
When converting jupyter notebooks into python file, execution would be blocked by incompatible pip installation command in jupyter notebooks.
In jupyter notebooks, those lines are:
! pip install matplotlib
% matplotlib inline
When transformed into python file, those lines are changed into:
get_ipython().system('pip install matplotlib')
get_ipython().run_line_magic('matplotlib', 'inline')