It is possible to run a Jupyter notebook as a Flyte task using Papermill. Papermill executes the notebook as a whole, so before using this plugin, it is essential to construct your notebook as recommended by Papermill.
To install the plugin, run the following command:
pip install flytekitplugins-papermill
An example can be found in the documentation. We also have a tutorial showcasing the various ways in which you can leverage the Papermill plugin.