<#5889 [Core feature] Add ImageSpec.from_notebook_...
# flytekit
c
#5889 [Core feature] Add ImageSpec.from_notebook_env Issue created by thomasjpfan Motivation: Why do you think this is important? With the recent running tasks in notebooks, we need to make it easier to run tasks in notebooks without running into pickling errors due to library or python versions not being the same between local and runtime environments. I propose a
ImageSpec.from_notebook_env(packages=[...])
, which creates an
ImageSpec
based on the version of the notebook environment. For example,
image_spec = ImageSpec.from_notebook_env(packages=["numpy", "pandas"]
) will use the numpy and pandas versions from the notebook environment. Goal: What should the final outcome look like, ideally? It'll make it easier to author tasks in jupyter notebooks. Describe alternatives you've considered Do not do this and make it hard to sync your packages versions between the notebook and runtime environment. Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? • Yes Have you read the Code of Conduct? • Yes flyteorg/flyte