Skip to content

Instantly share code, notes, and snippets.

View jainxy's full-sized avatar

Vishal Jain jainxy

  • Bengaluru, India
View GitHub Profile
@jainxy
jainxy / widget_commands.txt
Created April 10, 2019 07:43
Colab Layout Widget
# Ref - https://colab.research.google.com/notebooks/widgets.ipynb
# Build and control layout dynamically through code
from google.colab import widgets
# ----GRIDS-----
grid = widgets.Grid(2, 2, header_row=True, header_column=True) # Grid object
# Grid.output_to(indices) to direct output stream to that place in the grid.
with grid.output_to(1, 1):
@jainxy
jainxy / colab_md.txt
Last active April 8, 2019 11:06
Markdown - Quick Commands
-> Markdown => Simple Markup language
-> Colab's MD => Rendered via marked.js and similar to those in Jupyter and Github's version
-> Difference: Supports Latex equations(MathJax) like Jupyter but not HTML tags
-> Syntax Highlighting in the code blocks
****************HEADINGS**************
# This is equivalent to an <h1> tag
##### This is equivalent to an <h5> tag
_A text in italics_ ; __A text in bold__ ; ~~strike-through text~~
@jainxy
jainxy / colab_commands.txt
Created April 7, 2019 12:52
Colab commands
# Execute Colab notebook on local Jupyter Runtime - https://research.google.com/colaboratory/local-runtimes.html
# Mount Google drive to collab notebooks to use files and folders into the notebook
# Ref : https://towardsdatascience.com/getting-started-with-google-colab-f2fff97f594c
from google.colab import drive
drive.mount('/content/gdrive')