Skip to content

GTLibraryDataVisualization/Plotly-with-Python-Introduction-Workshop

Repository files navigation

Plotly-with-Python-Introductory-Workshop

After this workshop, we would appreciate your input on how your workshop experience is and how we can do better here: https://docs.google.com/forms/d/e/1FAIpQLScpN3Leq765IihESOpakWJgj4MqdtR_jf9GXtlyqrMGA7nYqg/viewform?usp=sf_link

Using Plotly API for python in order to create a 3D scatter plot Here I will explain the contents of this workbook, and how to run each file The preferred and easiest way to run the file is using plotly_workshop.py Here are the steps to do so

  1. Make sure you have python 3.X installed onto your machine and it can be run through the command line

  2. Download the materials and save them in a folder on your desktop called plotly_workshop

  3. Make sure you have pandas, numpy, and plotly installed. This can be done with the commands:

     pip install pandas
     pip install numpy
     pip install plotly  
     pip install chart-studio
    

From there you should be almost ready to run your script.

  1. Create a plotly account and retrieve your username and API key from settings.

  2. Edit plotly_workshop and replace the sample username and API key with your own.

  3. To run, open command line and run the commands given in the commands.txt file.

  4. Enjoy your visualization.

To use with jupyter notebook (Plotly_workshop_new.ipynb) - Note this is more complicated, and some prior CS experience is reccomended the Jupyter notebook file contains my explanations as well as the code itself

  1. Make sure you have python 3.X installed onto your machine and it can be run through the command line

  2. Download the materials and save them in a folder on your desktop called plotly_workshop

  3. Make sure you install jupyter notebook for python 3. This is most commonly done by installing the latest distribution of annaconda. (this can be easily googled)

  4. make sure you have pandas, numpy, and plotly installed, using annaconda. This can be done with the command:

     conda install pandas
     conda install numpy
     conda install plotly 
     conda install chart-studio
    

From there you should be almost ready to run your script.

  1. Create a plotly account and retrieve your username and API key from settings.

  2. navagate to the folder using the first command in commands.txt

  3. type "jupyter notebook" into the commandline

  4. This should open a web browser, with a file navagator

  5. Open the file

  6. Edit and replace the sample username and API key with your own

  7. you should now be able to run the jupyter notebook successfully

sample graph

About

Using Plotly API for python in order to create a 3D scatter plot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •