RPI-DATA / summer_2019

MIT License
0 stars 0 forks source link

Jupyter notebook package installation format is not compatible with python file format #4

Open abbylululu opened 5 years ago

abbylululu commented 5 years ago

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')