Home / Companies / InfluxData / Blog / Post Details
Content Deep Dive

Streaming Time Series with Jupyter and InfluxDB

Blog post from InfluxData

Post Details
Company
Date Published
Author
Anais Dotis-Georgiou
Word Count
1,067
Language
English
Hacker News Points
-
Summary

This tutorial demonstrates how to query system stats data from InfluxDB v2.0 using Flux and display the results in real-time in a Jupyter Notebook. The code imports necessary libraries, establishes a connection to the InfluxDB instance, defines a function `source_data` that fetches data from the database and refreshes it at regular intervals, generates an auto-refreshing DataFrame with this function, and creates a visualization using hvPlot to display the CPU usage over time. The tutorial aims to extend the invitation of Jupyter Notebooks to InfluxDB, providing a way to share code, explanations, and visualizations in the same place, making it easier to experiment and analyze data.