I have just installed a Jupyter Notebook in a local conda environment, and I've imported an .ipynb file from Google Colab to run it locally.
I wonder if there's any extension that enables the Form feature from Google Colab to work on a regular Jupyter Notebook, using the same syntax, like this below: 
PS: I'm aware of the Jupyter Widgets (ipywidgets) package/extension, however the syntax is different from Colab Forms, ideally I would want to keep the same syntax so I could use the same file back and forth between Colab and local easily
Disclaimer: this is not a strict solution to the problem presented by the OP, but it is a viable alternative.
For months I have been looking for a way to have certain Google Colab functionality locally, but to no avail. In particular, to date I haven't found a way to:
However, since one of the main motivations for using Jupyter locally is to use the computational resources of the local machine, Google Colab offers a very simple way to take advantage of all the features of the platform using a local Jupyter environment:
Then you can use the same file back and forth between Google Colab and your local environment easily.

Disclaimer: I'm the creator of ipyform.
You can use ipyform to render Colab forms in regular Jupyter and VSCode. It supports all Colab form annotations.
Add this to the top of your notebooks
# Install ipyform
%pip install ipyform
# Load the ipyform extension. This has no effect on Colab.
%load_ext ipyform
%form_config --auto-detect 1
For more details and examples, please refer to the repository’s README.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With