googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.12k stars 691 forks source link

Option to create from a template #4636

Open AyushSinghal9020 opened 2 weeks ago

AyushSinghal9020 commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Can we have a feature where we can create a new notebook based on a defined template

Describe the solution you'd like I actually dont know how to write a feature request, so this can be vague,

Assume I want to finetune Llama3 with QLORA, so I can create a template where I have already defined code cells for downaloding libraries, or code cells of importing,

or like this example

!pip install ipython-autotime
%load_ext autotime

I found this code from StackOverflow

Like I define a template with a starting cell with this code cell, so I dont have to keep it somewhere and copy pase it each time

or something like this

%%time

When ever I create a code cell it doesnt come empty but like

%%time

#-- rest of the code --

Describe alternatives you've considered The closest replication I found was the pre-defined code snippits given by colab itself

image but here we only have defined code snippits from colab itself

Additional context None