I want to know if I can add my personal snippets in google colaboratory.
With a code file open in the editor, choose Snippets > Insert Snippet from the right-click menu, then My Code Snippets. You should see a snippet named Square Root. Double-click it. The snippet code is inserted in the code file.
The Basics. Colaboratory, or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser, and is especially well suited to machine learning, data analysis and education.
Create a snippets notebook and write your snippets there (make sure to provide a searchable title in a text block to each snippet - see the screenshot below).
Copy the URL.
Tools > Preferences
, paste the snippets notebook URL in Custom snippet notebook URL and save.Now the snippets in the snippets notebook can be searched under Code Snippets Using the title provided in the text box.
See the tweet by @jakevdp here
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