Demo entry 6789588

Funcion 1

   

Submitted by Pablo on Apr 30, 2019 at 20:31
Language: Python 3. Code size: 827 Bytes.

##imports##

##plotly graphing library##
import plotly.figure_factory as ff
import plotly
import plotly.plotly as py
import plotly.graph_objs as go 
import plotly.offline as off

##numpy for numeric operations##
import numpy as np 
##manipulate datetime##
from datetime import datetime

##pandas for data manipulation##
import pandas as pd

##function to enable plot in google colab notebooks##
def enable_plotly_in_cell():
  import IPython
  from plotly.offline import init_notebook_mode
  display(IPython.core.display.HTML('''<script src="/static/components/requirejs/require.js"></script>'''))
  init_notebook_mode(connected=False)
##download files when training with gpu in google colab
from google.colab import files

##color palette##
colors=['#20dfb9','#808080','#ff0066','#99ccff','yellow']

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).