Select to view content in your preferred language

Add package from github to online notebook

540
2
Jump to solution
10-30-2023 12:51 PM
Labels (1)
DavinShokes1
Frequent Contributor

Is there a way to add packages to an online notebook? Specifically, I want to import from the Office 365 REST package on github. This way I can schedule updating a hosted layer from Sharepoint data.

Thanks!

0 Kudos
1 Solution

Accepted Solutions
NicholasGiner1
Esri Contributor

Hi @DavinShokes1 - yes you can add packages to the Online Notebook via conda or pip.  However, this package is only available for the duration of the notebook session--once you close the notebook or the container, this package is no longer available.  In other words, the package won't persist in the runtime manifest, you have to run the install command in each notebook. 

I just tried to install the Office365-REST-Python-Client in an Online notebook.  It took 7 seconds to install.

NicholasGiner1_0-1699449615134.pngNicholasGiner1_1-1699449625169.png

 

View solution in original post

2 Replies
NicholasGiner1
Esri Contributor

Hi @DavinShokes1 - yes you can add packages to the Online Notebook via conda or pip.  However, this package is only available for the duration of the notebook session--once you close the notebook or the container, this package is no longer available.  In other words, the package won't persist in the runtime manifest, you have to run the install command in each notebook. 

I just tried to install the Office365-REST-Python-Client in an Online notebook.  It took 7 seconds to install.

NicholasGiner1_0-1699449615134.pngNicholasGiner1_1-1699449625169.png

 

DavinShokes1
Frequent Contributor

This works great. Thanks alot!

0 Kudos