I have a python laptop very slowly when I run it on my laptop

I python laptop is very slow and not working properly. For example, consider the following code example.

the code:

%matplotlib inline 

from collections import defaultdict

import pandas as pd
import matplotlib.pyplot as plt
import requests
from pattern import web

url = 'http://en.wikipedia.org/wiki/List_of_countries_by_past_and_future_population'
website_html = requests.get(url).text
print website_html

This code should get all the html code from the corresponding web page. Sometimes I can execute code. Sometimes I'm not like that. Please help me with this problem.

+4
source share

All Articles