Data Visualization with PyScript

Data Visualization with PyScript

Tell engaging stories with data using Python in the browser.

rate limit

Code not recognized.

About this course

A well-designed visualization can communicate to nearly any user, and Python is one of the most utilized and powerful data analytics tools available. Doesn't it make sense to combine the powerful data tools of Python and the very best web visualization tools?

If this sounds attractive, this course will teach you to create data visualizations and share them without needing hosting setup, environment creation, or other Python methods. This is possible by leveraging PyScript.

This course will make you understand how to create web-ready visualizations directly with Python that you can share on- or offline without needing a complicated setup. Also, you can take existing Python scripts and share them with non-technical users without packaging or environments.

What you'll learn—and how you can apply it

By the end of this hands-on course, you’ll understand:

  • Basic functions and application of PyScript
  • How PyScript can be used to display and share data visualizations
  • How to visualize data on the web using Python APIs with little setup
  • How to interact with data and Python on the web

And you’ll be able to:

  • Create a basic PyScript application
  • Run Python in the browser
  • Create a basic data dashboard using Python

This training is for you because…

  • You’re a student or experienced data scientist looking to learn a new way to bring data visualizations to the web
  • You work with data and create visualizations
  • You wish to become a data analyst or data scientist
  • You want to learn to make visualization apps in Python that can be shared easily

Prerequisites

  • Essential: Any code editor of choice for coding exercises
  • Essential: A free PyScript.com account 
  • Optional: A free Alpha Vantage account (by clicking "Get Your Free API Key Today")
  • Basic understanding of Python, including lists, variables, and functions
  • Basic knowledge of pandas is recommended but not essential
  • Fundamental knowledge of HTML/JS is recommended but not essential

Recommended preparation

About the instructor

Blake Rayfield is an Associate Professor of Finance at Northern Arizona University with a demonstrated history of working in the higher education industry. He holds an M.S. in Financial Economics and a Ph.D. in Financial Economics from The University of New Orleans. He has published in several peer-reviewed journals, including the Journal of Financial Research, Quarterly Review of Economics and Finance, and the Review of Behavioral Finance, among others. His research interests are in Corporate Finance and Investments, and he incorporates Python and data visualization in all projects. You can find him here: LinkedIn | GitHub | ResearchGate.

Questions? Issues? Contact [email protected].

Curriculum01:15:21

  • Getting Started
  • Author Introduction & Course Overview 00:02:15
  • PyScript.com: Overview and Setup 00:03:08
  • Creating a Basic PyScript
  • Including PyScript from the CDN 00:05:09
  • <py-config> tag 00:02:03
  • <py-script> and <py-repl> tags 00:11:41
  • Creating a Visualization in Python
  • Creating a Simple Visualization (Stock Price Chart) using Matplotlib 00:11:25
  • Customizing the Matplotlib Visualization 00:10:14
  • Knowing Just Enough JavaScript to be Dangerous
  • "Moving Ball" Example - Part I 00:12:27
  • "Moving Ball" Example - Part II 00:07:23
  • Going Farther with JavaScript
  • Passing between Python and JavaScript 00:04:06
  • JavaScript Packages 00:02:01
  • Data Dashboard
  • Building a Simple App with hvPlot and Panel 00:03:29
  • End of Course Survey

About this course

A well-designed visualization can communicate to nearly any user, and Python is one of the most utilized and powerful data analytics tools available. Doesn't it make sense to combine the powerful data tools of Python and the very best web visualization tools?

If this sounds attractive, this course will teach you to create data visualizations and share them without needing hosting setup, environment creation, or other Python methods. This is possible by leveraging PyScript.

This course will make you understand how to create web-ready visualizations directly with Python that you can share on- or offline without needing a complicated setup. Also, you can take existing Python scripts and share them with non-technical users without packaging or environments.

What you'll learn—and how you can apply it

By the end of this hands-on course, you’ll understand:

  • Basic functions and application of PyScript
  • How PyScript can be used to display and share data visualizations
  • How to visualize data on the web using Python APIs with little setup
  • How to interact with data and Python on the web

And you’ll be able to:

  • Create a basic PyScript application
  • Run Python in the browser
  • Create a basic data dashboard using Python

This training is for you because…

  • You’re a student or experienced data scientist looking to learn a new way to bring data visualizations to the web
  • You work with data and create visualizations
  • You wish to become a data analyst or data scientist
  • You want to learn to make visualization apps in Python that can be shared easily

Prerequisites

  • Essential: Any code editor of choice for coding exercises
  • Essential: A free PyScript.com account 
  • Optional: A free Alpha Vantage account (by clicking "Get Your Free API Key Today")
  • Basic understanding of Python, including lists, variables, and functions
  • Basic knowledge of pandas is recommended but not essential
  • Fundamental knowledge of HTML/JS is recommended but not essential

Recommended preparation

About the instructor

Blake Rayfield is an Associate Professor of Finance at Northern Arizona University with a demonstrated history of working in the higher education industry. He holds an M.S. in Financial Economics and a Ph.D. in Financial Economics from The University of New Orleans. He has published in several peer-reviewed journals, including the Journal of Financial Research, Quarterly Review of Economics and Finance, and the Review of Behavioral Finance, among others. His research interests are in Corporate Finance and Investments, and he incorporates Python and data visualization in all projects. You can find him here: LinkedIn | GitHub | ResearchGate.

Questions? Issues? Contact [email protected].

Curriculum01:15:21

  • Getting Started
  • Author Introduction & Course Overview 00:02:15
  • PyScript.com: Overview and Setup 00:03:08
  • Creating a Basic PyScript
  • Including PyScript from the CDN 00:05:09
  • <py-config> tag 00:02:03
  • <py-script> and <py-repl> tags 00:11:41
  • Creating a Visualization in Python
  • Creating a Simple Visualization (Stock Price Chart) using Matplotlib 00:11:25
  • Customizing the Matplotlib Visualization 00:10:14
  • Knowing Just Enough JavaScript to be Dangerous
  • "Moving Ball" Example - Part I 00:12:27
  • "Moving Ball" Example - Part II 00:07:23
  • Going Farther with JavaScript
  • Passing between Python and JavaScript 00:04:06
  • JavaScript Packages 00:02:01
  • Data Dashboard
  • Building a Simple App with hvPlot and Panel 00:03:29
  • End of Course Survey