RUNNING PYTHON LIBRARY MATPLOTLIB IN GOOGLE COLABORATORY
If you are searching for how to run python's library function matplotlib in Google Colaboratory or any other python program in Colaboratory you are in the right place all you have to do is continue reading.
INSTALLATION PROCESS
If you want to run matplotlib in your Integration Development Learning Environment(IDLE) for that you have to install Graphic User Interface(GUI). Instead of installing a python IDE you can also use Colaboratory as your python Development platform and all the programs you have done will be stored in the cloud.Sign into Google Drive with your Account. Right Click and select connect more apps here you can see a lot of apps can be directly used in Google Drive, scroll down and search for Google Colaboratory and then install it if not installed.
CHANGING RUNTIME TYPE TO GPU
Graphic Processing Unit(GPU) which is free to use in Google Colaboratory. Click Runtime from the menu and select Change runtime type here you can see Hardware Accelerator and change it to GPU. If there is no need to use Processing Units turn it to none before coding it will help you to get better performance.PYTHON CODE USING MATPLOTLIB
Now we are going to create a simple 2D graph for the visitors of some place with Days. Firstly we have to import the matplotlib package also with the plotting function pyplot. After typing the code just click on the play button to run the code. If you want to run another code click the +code to get the coding line.Here's the python code to show the 2D Graph
Read and Write Images using matplotlib
To read images in python you can import a CV library like cv2.imread("here you have to give the image address from files on the left side bar"). If you don't have any image then upload it from your computer and then you have to import matplotlib and pyplot function to write the image.Python Code to List All Project From Drive
And you can convert the Image into Negative Image by Bitwise Not function.
Python Code to List All Project From Drive
LISTING PROJECTS FROM DRIVE
Firstly you have to import google drive in google colaboratory and then you have to import tensorflow library for the computation process it was released by Google itself. Using mount you can read the data from your drive while running it verifies by you to logging into your account and also you have to copy and paste a code in the verification process and then click code to text line using list content in the current directory you can display all the projects from Google Drive or Google Cloud.Python Code to List All Project From Drive
Here is the link for Google KickStart Round A 2020 Plates problem using Java.
0 Comments