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
-
Make sure you have python 3.X installed onto your machine and it can be run through the command line
-
Download the materials and save them in a folder on your desktop called plotly_workshop
-
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.
-
Create a plotly account and retrieve your username and API key from settings.
-
Edit plotly_workshop and replace the sample username and API key with your own.
-
To run, open command line and run the commands given in the commands.txt file.
-
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
-
Make sure you have python 3.X installed onto your machine and it can be run through the command line
-
Download the materials and save them in a folder on your desktop called plotly_workshop
-
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)
-
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.
-
Create a plotly account and retrieve your username and API key from settings.
-
navagate to the folder using the first command in commands.txt
-
type "jupyter notebook" into the commandline
-
This should open a web browser, with a file navagator
-
Open the file
-
Edit and replace the sample username and API key with your own
-
you should now be able to run the jupyter notebook successfully