Make sure 2020 iPython notebook installs correct versions of packages on any environment
tonmcg opened this issue · comments
Is your feature request related to a problem? Please describe.
Ensure the iPython notebook installs the correct versions of packages irrespective of environment.
Describe the solution you'd like
From Jake VanderPlas:
Fundamentally the problem is usually rooted in the fact that the Jupyter kernels are disconnected from Jupyter's shell; in other words, the installer points to a different Python version than is being used in the notebook.
The following lines of code should be added so that packages are installed and run correctly in the Jupyter notebook regardless of envirnoment.
import sys
!{sys.executable} -m pip install pandas
!{sys.executable} -m pip install lxml
Describe alternatives you've considered
None.