Skip to content

Instantly share code, notes, and snippets.

@esenthil2018
Created May 27, 2022 19:23
Show Gist options
  • Save esenthil2018/5b3bb75b8244846ed5b2effca5e8da18 to your computer and use it in GitHub Desktop.
Save esenthil2018/5b3bb75b8244846ed5b2effca5e8da18 to your computer and use it in GitHub Desktop.
%%capture
import IPython
if (IPython.version_info[0] < 7):
!pip -q install ipython --upgrade
# To load the updated ipython that we have just installed,
# we need to restart the runtime. The exit() command allows
# us to stop the current runtime, and executing the cell after
# it would restart the runtime.
exit()
# this is to allow for colab runtime to restart before trying to
# execute the next cell.
# Use seaborn for pairplot.
!pip install -q seaborn
%%capture
!pip -q install lineapy
%load_ext lineapy
import os
import lineapy
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
# Make NumPy printouts easier to read.
np.set_printoptions(precision=3, suppress=True)
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
print(tf.__version__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment