Forum Discussion

yongshao's avatar
yongshao
Helper III
2 years ago

Notebook Resources - API to upload files under built-in folder

uploading python files into notebook's resources built-in folder, the notebook could refer and call them

we know how to manually upload, but there is any API to do such upload?

we want to automate it when deploying lakehouses, notebooks and pipelines

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi yongshao ,

     

    Notebook resources can be managed using the Visual Studio Code extension.

     

    After editing notebooks and resource files locally, you can upload them to a remote workspace by selecting the Publish Resource Folders option. This will upload all the files and subfolders under the built-in folder to the notebook resource.

     

    For more details please see:

    Work with notebook resources in Visual Studio Code - Microsoft Fabric | Microsoft Learn

     

    If you have any other questions please feel free to contact me.

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

  • Hi Yang, thanks for update. we want to automate notebook resources by deployment, any API to upload files into notebook resource folder?

  • Fabric enviorment with resources folder - https://learn.microsoft.com/en-us/fabric/data-engineering/environment-manage-resources

    currently it seems to manually upload files into the resources folder, is there any API for such upload? or any roadmap for such API?

    our CI/CD deployment is creating or updating the environment for notebooks, we also want CI/CD to upload required python/json files into the environment's resources, so the notebooks could directly use them 

    by the way, we want to get rid of all manual actions when deploying our Fabric workspace into prod 

    Thank you