Skip to content

[FR]: Add managed egress and flexible shapes as options for create_notebook_session #1276

@HarrySnart

Description

@HarrySnart

Willingness to contribute

Yes. I can contribute this feature independently.

Proposal Summary

Under ads.catalog.notebook the method create_notebook_session() currently does not allow for service managed egress, requiring a subnet_id and also only allows for non-flexible compute shapes.

I'd like to propose making subnet_id an optional parameter, and add ocpus and memory_in_gbs as optional parameters.

Motivation

What is the use case for this feature? It makes it easier to use create_notebook_session particularly when users are working on demos or POCs and don't need to specify a VCN. Likewise, adding support for flexible shapes makes it simpler as currently you can only do this manually via the OCI SDK

Why is this use case valuable to support for OCI DataScience users in general?

It allows users to use modern flexible compute shapes when scripting notebook creation without using OCI SDK directly.

Why is this use case valuable to support for your project(s) or organization? It makes it easier for solution engineers to use ADS for demos and POCs

Why is it currently difficult to achieve this use case? Its not difficult, but you have to use OCI SDK to do this. It makes this more convenient for ADS users

Details

I've written and unit tested an enhancement locally, and have forked the repo. I want to use this issue to link it to my branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions