atlas news
    
Only Python
27  octobre     19h46
Better NameError messages for Python
   Python . is barely out and already the . alpha has some improvements for NameError messages. I suspect that these will be backported to . in time for the next release. On Ideas Python Discussion, Pamela Fox suggested that it might be useful to consider potential missing import when a...
18  octobre     19h07
pandas’ SettingWithCopyWarning: did I get it right?
   nbsp;I am just beginning to learn pandas and am looking to provide some automated help. From what I read, it appears that SettingWithCopyWarning is something that confuse many people. Is the following correct In : df pd.DataFrame , , , , ., , ...
19  septembre     16h42
New milestone: friendly friendly-traceback version 0.6 (and why not 1.0)
   Just a few minutes ago, isidentical tweeted that PyPy . had implemented the new enhanced tracebacks that are going to be part of cPython . . Of course, I had to reply to show that friendly friendly traceback have been able to do the same with all cPython version starting with . . .A few...
17  juin     19h28
friendly idle is done
   friendly idle is done I’ve found a better solution for the remaining issue I had mentioned in the previous blog post.I also found a fix for an annoyance mentioned by Raymond Hettinger on Twitter I could have changed the version to . ... but decided to wait until I get more feedback from users.
14  juin     11h10
Friendly IDLE
   friendly idle is now available. This is just a quick announcement. Eventually I plan to write a longer blog post explaining how I use import hooks to patch IDLE and to provide seamless support for friend friendly traceback. Before I incorporated partial support for IDLE within...
11  juin     11h20
Nicer arithmetic with Python
   Beginning programmers are often surprised by floating point arithmetic inaccuracies. If they use Python, many will often write posts saying that Python is broken when the see results as follows: gt; gt; gt; . . . This particular result is not limited to Python. In fact,...
13  mai     22h40
Python fun with emojis
   At EuroSciPy in , Marc Garcia gave a lightning talk which started by pointing out that scientific Python programmers like to alias everything, such asimport numpy as np import pandas as pd and suggested that they perhaps would prefer to use emojis, such as import pandas as However, Python...
10  avril     19h06
Natural syntax for units in Python
   In the past week, there has been an interesting discussion on Python ideas about Natural support for units in Python. As I have taught introductory courses in Physics for about of the years of my academic career, I am used to stressing the importance of using units correctly, but had never...
08  février     21h21
Friendly-traceback and IPython: update
   In my previous post, I mentioned that, unlike IPython, friendly friendly traceback included values of relevant objects in a traceback. As I wrote in the update, Alex Hall pointed out that one could get this information by using a verbose mode in IPython. Here is the previous example...
05  février     00h44
Friendly-traceback: trying to stay ahead of IPython
   UPDATE: Alex Hall pointed out that IPython can display the values of variables in the highlighted sections using xmode verbose. He also suggested a different highlighting strategy when the problematic code spans multiple lines. I go into more details about these two issues in a future blog...
05  janvier     22h06
Python 101: enabling a restricted subset of Python
   I decided to submit to the the Ideas category of Discuss Python a proposal which I have summarized as follows:Summary: I propose that a new compile time directive be available to restrict the Python syntax to a strict subset. This would facilitate the teaching of Python to beginners as well as the...
28  décembre     18h48
New milestone for friendly: version 0.5
   nbsp;Friendly previously at . . and friendly traceback previously at . . are now at version . . The joint documentation for both projects has not yet been updated. In addition to the many new cases added for which friendly friendly traceback can help with, which includes close to...
20  novembre     12h45
Friendly-traceback en espa ol
   nbsp;Friendly and Friendly traceback are now partially available in Spanish thanks to the work of Mrtà n René https: github.com martinvilu .You can have a look at the Spanish translations in context for SyntaxErrors and for other exceptions.If you are interested in contributing to...
23  octobre     11h50
Forgot to set up a custom exception hook? Perhaps it is not too late.
   There are many custom exception hook that seek to improve upon the standard one from Python. The very first one is Python’s cgitb module, but there are many others including, in no particular order, better exchook, infi.traceback, the traceback submodule of Rich, the different but similarly...
24  juillet     12h19
New interactive friendly tracebacks for Jupyter
   nbsp;Summary: I have a draft version of a new and arguably better way to display information from friendly for Jupyter labs notebooks. For now, it only works with the default light theme.The following screen captures illustrate a new way to display the information from friendly inside Jupyter lab...
21  juillet     16h33
Friendly-traceback 0.4 and PyConAu
   nbsp;Just a quick update ...After over commits, most of which included new traceback cases explained by Friendly traceback, it is time to go from version . to . . There are too many changes to mention in this blog post and the documentation needs to be updated. The version...
12  juillet     18h03
Friendlier tracebacks in REPLs (including Jupyter)
   Traceback: Determination of origin; the process of tracing something back to its source.I have been working towards release . of friendly friendly traceback as well as preparing for a talk at the upcoming PyconAU. Those familiar with PyconAU might be interested to note that I plan to...
08  juillet     14h12
friendly-traceback is back
   nbsp;A few months ago, I mentioned that friendly traceback had been renamed friendly. As friendly friendly traceback evolved, the number of dependencies increased. For some third party projects that use friendly friendly traceback, such as futurecoder and HackInScience, many of these...
14  mars     11h30
Friendly version 0.3 has been released
   Friendly version . has been released. This version also marks the official name change from the former friendly traceback.Before I started working on Friendly, I assumed that to do custom exception handling, one simply had to redefine sys.excepthook. However, I since found out that this does not...
06  mars     16h58
Going back in history
   Imagine that you wish to run a program that takes a long time to run. Just in case somethings goes wrong, you decide to use friendly traceback soon to be renamed... in interactive mode to run it. This turns out to be a good decision:Time to explore what might be the problem, and where...
05  mars     19h56
Friendly-traceback will have a new name
   tl; dr: I plan to change the name from friendly traceback to friendly. When I started working on Friendly traceback, I had a simple goal in mind:Given an error message in a Python traceback, parse it and reformulate it into something easier to understand by beginners and that could be easily...
27  février     15h42
Friendly-traceback: testing with Real Python
   Real Python is an excellent learning resource for beginning and intermediate Python programmers that want to learn more about various Python related topics. Most of the resources of RealPython are behind a paywall, but there are many articles available for free. One of the free articles,...
18  février     12h33
My wish for Python 4
   I love Python. A few years after I started using it, I saw someone writing about it and using the phrase it fits my brain : this is very much how I feel ... at least, for simple straightforward code that doesn’t rely on weird metaclass constructs, or even with the added distraction of type...
11  février     15h34
Friendly-traceback’s www function
   Today, I saw some write up that Friendly traceback was discussed on the PythonBytes podcast. A comment made during that podcast suggested that it would be useful if an internet search could be performed, perhaps using a function named www. Another name was mentioned . So, of course I immediately...
04  février     22h13
Python’s tug of war between beginner-friendly features and support for advanced users
   Python is my favourite programming language. Since I discovered it in , programming in Python became my favourite hobby. I’ve tried to learn a few other languages and have never found one as friendly to beginners as Python. As readers of this blog know, these days I am particularly interested...