May 21st, 2018

Dataquest: Generating Climate Temperature Spirals in Python

Comments Off on Dataquest: Generating Climate Temperature Spirals in Python, Python, by admin.

Ed Hawkins, a climate scientist, tweeted the following animated visualization in 2017 and captivated the world:

This visualization shows the deviations from the average temperature between 1850 and 1900. It was reshared millions of times over Twitter and Facebook and a version of it was even shown at the opening ceremony for the Rio Olympics.

The visualization is compelling, because it helps viewers understand both the varying fluctuations in temperatures, and the sharp overall increases in average temperatures in the

Read the rest

May 21st, 2018

Real Python: Introduction to Python 3

Comments Off on Real Python: Introduction to Python 3, Python, by admin.

Python is a high-level, interpreted scripting language developed in the late 1980s by Guido van Rossum at the National Research Institute for Mathematics and Computer Science in the Netherlands. The initial version was published at the alt.sources newsgroup in 1991, and version 1.0 was released in 1994.

Python 2.0 was released in 2000, and the 2.x versions were the prevalent releases until December 2008. At that time, the development team made the decision to release version 3.0, which contained a … Read the rest

May 20th, 2018

Codementor: How I learned Python

Comments Off on Codementor: How I learned Python, Python, by admin.

python… Read the rest

May 19th, 2018

Codementor: How do I get started with Python?

Comments Off on Codementor: How do I get started with Python?, Python, by admin.

Getting started with Python made easy… Read the rest

May 19th, 2018

EuroPython: EuroPython 2018:  Call for Proposals closes on Sunday

Comments Off on EuroPython: EuroPython 2018:  Call for Proposals closes on Sunday, Python, by admin.

We would like to remind you that our two week call for proposals (CFP) closes on Sunday.

image

Submit your proposal !

Submissions will be open until Sunday, May 20.

If you’d like to submit a talk, please see our CFP announcement for details:

https://blog.europython.eu/post/173666124852/europython-2018-call-for-proposals-cfp-is-open

Submissions are possibe via the CFP page on the EuroPython 2018 website:

https://ep2018.europython.eu/en/call-for-proposals/

We’d like to invite everyone to submit proposals for talks, trainings, panels, etc. Looking at the submission counts, we are especially looking for Read the rest

May 19th, 2018

Yasoob Khalid: Python local/global scopes

Comments Off on Yasoob Khalid: Python local/global scopes, Python, by admin.

How’s everyone? I am back with another tip/gotcha which might trip beginner programmers. This one relates to Python scopes so if you are already familiar with them then this article might not be very informative for you. If you are not very well versed in Python scopes then keep reading.

Lets start with a code sample. Save the following code in a file and run it:

command = "You are a LOVELY person!"

def shout():
    print(command)

shout()
print(command)

Output:

You 
Read the rest

May 18th, 2018

Brad Lucas: Unzip File If Necessary

Comments Off on Brad Lucas: Unzip File If Necessary, Python, by admin.

Ran into a situation where an external vendor started sending csv files gzipped. The trouble was they started zipping only larger files. Since the system that ingested the files would break on a gz file I needed a routine to unzip the gz files and leave the non-zipped files alone.

    def unzip_if_necessary(self, filename):
        print "unzip_if_necessary: " + filename
        f = open(filename)

        # Read magic number (the first 2 bytes) and rewind.                                                                                                                                                                               
        magic_number = f.read(2)
        f.seek(0)
        f.close()

        if magic_number == '\x1f\x8b':
            
Read the rest

May 18th, 2018

Django Weblog: Django 2.1 alpha 1 released

Comments Off on Django Weblog: Django 2.1 alpha 1 released, Python, by admin.

Django 2.1 alpha 1 is now available. It represents the first stage in the 2.1 release cycle and is an opportunity for you to try out the changes coming in Django 2.1.

Django 2.1 has a smorgasbord of new features which you can read about in
the in-development 2.1 release notes.

This alpha milestone marks the feature freeze. The current
release schedule
calls for a beta release in about a month and a release
candidate about a month from … Read the rest

May 17th, 2018

Continuum Analytics Blog: How to Generate Custom Anaconda Parcels for Cloudera CDH with Anaconda Enterprise 5

Comments Off on Continuum Analytics Blog: How to Generate Custom Anaconda Parcels for Cloudera CDH with Anaconda Enterprise 5, Python, by admin.

As part of our partnership with Cloudera, we offer a freely available Anaconda parcel for Cloudera CDH based on Python 2.7 and the Anaconda Distribution. The Anaconda parcel has been very well-received by both Anaconda and Cloudera users by making it easier for data scientists and analysts to use libraries from Anaconda that they know …
Read more →

The post How to Generate Custom Anaconda Parcels for Cloudera CDH with Anaconda Enterprise 5 appeared first on Anaconda.… Read the rest

May 16th, 2018

NumFOCUS: Project Jupyter Receives ACM Software System Award

Comments Off on NumFOCUS: Project Jupyter Receives ACM Software System Award, Python, by admin.

The post Project Jupyter Receives ACM Software System Award appeared first on NumFOCUS.… Read the rest