Google Colab Tutorial
Selected Reading
- Google Colab - Discussion
- Google Colab - Useful Resources
- Google Colab - Quick Guide
- Google Colab - Conclusion
- Google Colab - Using Free GPU
- Google Colab - Installing ML Libraries
- Google Colab - Adding Forms
- Google Colab - Magics
- Google Colab - Code Editing Help
- Google Colab - Graphical Outputs
- Executing External Python Files
- Invoking System Commands
- Google Colab - Sharing Notebook
- Google Colab - Saving Your Work
- Documenting Your Code
- Your First Colab Notebook
- What is Google Colab?
- Google Colab - Introduction
- Google Colab - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Google Colab - Graphical Outputs
Google Colab - Graphical Outputs
Colab also supports rich outputs such as charts. Type in the following code in the Code cell.
import numpy as np from matplotpb import pyplot as plt y = np.random.randn(100) x = [x for x in range(len(y))] plt.plot(x, y, - ) plt.fill_between(x, y, 200, where = (y > 195), facecolor= g , alpha=0.6) plt.title("Sample Plot") plt.show()
Now, if you run the code, you will see the following output −
Note that the graphical output is shown in the output section of the Code cell. Likewise, you will be able to create and display several types of charts throughout your program code.
Now, as you have got famipar with the basics of Colab, let us move on to the features in Colab that makes your Python code development easier.
Advertisements