NumPy update 1.18-1.21

KC_1205
Databricks Partner

Hi all,

I am planning to update the DB to 9.1 LTS from 7.3 LTS, corresponding NumPy version will be 1.19 and later would like to update 1.21 in the notebooks. At cluster I have Spark version related to the 9.1 LTS which will support 1.19 and notebook will be 1.21. One should expect any compatibility or any other unknown issues? any suggestions will be appreciated.

Thank you

Kiran C

-werners-
Esteemed Contributor III

@Kiran Chalasani​ , incompatibilities are possible with any upgrade.

Depending on what functionalities of NumPy you use, you will have issues or not.

Some functionalities get deprecated, and others are added. To get a clear view, I suggest looking at the numpy website and see what would change for you.

So check 1.19, 1.20 and 1.21

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Kiran Chalasani​ ,

According to the docs DBR 7.3 LTS comes with Numpy 1.18.1 https://docs.databricks.com/release-notes/runtime/7.3.html and DBR 9.1 LTS comes with Numpy 1.19.2 https://docs.databricks.com/release-notes/runtime/9.1.html

If you need to install a newer version, then you can create a init script or install the version you need. For more details on how to do it, please check the examples in the docs https://docs.databricks.com/libraries/index.html

View solution in original post