Prashant K
Prashant K

Reputation: 1

How to add seaborn library in jupyter lite static build

I have created the static build of jupyter lite while running seaborn library example code in jupyter lite tool i am getting this error : seaborn module not found.

Upvotes: 0

Views: 3779

Answers (2)

Oscar Pérez Tuta
Oscar Pérez Tuta

Reputation: 11

Add this at the beginning of your notebook

import piplite
await piplite.install('seaborn')
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline

Sample notebook image

Upvotes: 1

Aarzoo Khan
Aarzoo Khan

Reputation: 1

First of all import matplotlib library then import seaborn library like, from matplotlib import pyplot as plt import seaborn as sn (plt and sn is like rename or short name you can write anything like this place)

Upvotes: 0

Related Questions