Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module Not Found Error: No module named 'chart_studio'

I run !pip install chart_studio in jupyter notebook.

Then when running this code:

import numpy as np
import pandas as pd

import cufflinks as cf
import chart_studio.plotly as py

from chart_studio.plotly import iplot

import plotly.graph_objects as go
chart_studio.tools.set_credentials_file(username=xx, api_key = xxx)

I get back:

No module named 'chart_studio'

I've tried syntax corrections but no joy. Any suggestions?

like image 296
Miles M Avatar asked Apr 15 '20 15:04

Miles M


2 Answers

Just pip install chart_studio in the current environment

like image 101
Abhay Bhutkar Avatar answered Sep 23 '22 13:09

Abhay Bhutkar


Use conda for the installation:

conda install -c plotly chart-studio
like image 37
david restrepo Avatar answered Sep 25 '22 13:09

david restrepo