Archive for the ‘Python’ Category

Sometimes, it amazes me how elegant Python is. A class system that is almost as powerful as CLOS, yet easy to use and comprehend. It is truly one of the most powerful programming systems in the world, if you show … Read the rest

Over the last few months, Visual Studio 2017 has been in preview and many of you have been trying it out and providing feedback. We are very appreciative of everyone who has taken the time to do this.

As many noticed, during an update in January we removed Python support from the VS 2017 Release Candidate. This was done suddenly and without warning, and for that we apologize. We will be making a preview available at launch, and Python support … Read the rest

Today I tested the twill python module with python 2.7 and Fedora 25.
This is: a scripting system for automating Web browsing. Useful for testing Web pages or grabbing data from password-protected sites automatically.
To install this python module I used pip command:
[root@localhost mythcat]# pip install twill
Collecting twill
Downloading twill-1.8.0.tar.gz (176kB)
100% |████████████████████████████████| 184kB 2.5MB/s
Installing collected packages: twill
Running setup.py install for twill ... done
Successfully installed twill-1.8.0

Let’s try some tests:

[mythcat@localhost ~]$ python
Python 2.7.13
Read the rest

Today we’re launching our new course Unsupervised Learning in Python by Benjamin Wilson. Say you have a collection of customers with a variety of characteristics such as age, location, and financial history, and you wish to discover patterns and sort them into clusters. Or perhaps you have a set of texts, such as wikipedia pages, and you wish to segment them into categories based on their content. This is the world of unsupervised learning, called as such because you are … Read the rest

Our eighth Early Access Program (EAP) release for PyCharm 2017.1 is out now! Get it from our EAP page.

New Features

  • Vue.js initial support. Vue is a MVVM (Model-View-ViewModel) JavaScript framework which is becoming ever more popular. To use it, you need to install the Vue.js plugin. You can install the plugin by going to Settings | Plugins | Install JetBrains Plugins, and then choosing Vue.js. [Pro only]vuejs

Bug Fixes

  • Several issues with the new Data View were resolved.
Read the rest

When it comes to programming, I have a belt and suspenders philosophy.
Anything that can help me avoid errors early is worth looking into.

The type annotation support that’s been gradually added to Python
is a good example. Here’s how it works and how it can be helpful.

Introduction

The first important point is that the new type annotation support
has no effect at runtime. Adding type annotations in your code
has no risk of causing new runtime errors: Python

Read the rest

Python 3.5 added more support for Unpacking Generalizations in PEP 448. According to the PEP, it added extended usages of the * iterable unpacking operator and ** dictionary unpacking operators to allow unpacking in more positions, an arbitrary number of times, and in additional circumstances. What this means is that we can now make calls to functions with an arbitrary number of unpackings. Let’s take a look at a dict() example:

>>> my_dict = {'1':'one'
Read the rest

Announcing: DataCamp for the classroom, a new free plan for Academics.

We want to support every student that wants to learn Data Science. That is why, as of today, professors/teachers/TA’s/… can give their students 6 months of FREE access to the full DataCamp course curriculum when used in the classroom. Request your free classroom today.

1) Student Benefits

When you set-up your DataCamp for the classroom account, each student will automatically have full access to the entire course curriculum … Read the rest

Data visualization and storytelling with your data are essential skills that every data scientist needs to communicate insights gained from analyses effectively to any audience out there. 

For most beginners, the first package that they use to get in touch with data visualization and storytelling is, naturally, Matplotlib: it is a Python 2D plotting library that enables users to make publication-quality figures. But, what might be even more convincing is the fact that other packages, such as Pandas, intend to … Read the rest

Introduction

In a previous post, I covered one approach for generating documents using
HTML templates to create a PDF. While PDF is great, the world still relies
on Microsoft Word for document creation. In reality, it will be much simpler for a
business user to create the desired template that supports all the custom formatting
they need in Word versus trying to use HTML+CSS. Fortunately, there is a a package
that supports doing a MS

Read the rest