How do I install packages in notebooks?

  • Updated

To install packages in notebooks, you need to first consider which language you are using in your notebook, Python3 or R. For Python, you can install packages via pip through notebook cells by specifying a "!" before the pip call. So for example “!pip install statsmodels” would be a standard way of installing statsmodels. For R, you can install packages using install.packages (“package_name") and this would be the standard way of installing. After the installation is complete, you need to restart your kernel to be able to use the package.

Was this article helpful?

7 out of 8 found this helpful

Have more questions? Submit a request



Article is closed for comments.