Discover and read the best of Twitter Threads about #Ipython

Most recents (2)

Argh! Who thought Black should be automatically applied to lines in the IPython CLI?

The makes it less useful for education purposes, less useful for interactive math, and annoying when it rewrites your input across multiple lines.
In a #Python course, if you want to demonstrate that print('hello') and print("hello") are the same, then too bad. The CLI rewrites both to use double quotes and the students can't see what you were demonstrating.
When doing math, you improve readability by grouping your terms as shown in PEP 8:

3*x**2 - 5*x + 10

However, the new #Ipython CLI immediately expands it to:

3 * x ** 2 - 5 * x + 10
Read 12 tweets
Since everyone is doing the Advent of Code, I want to do something else - the #IPython Advent Calendar.
IPython is great to interactively solve problems like this, and I want to show you some tips to make the most of it.
So 25 tips for 25 days 👇
1. You can display useful information for any function, module, or variable by adding "?" at the end (or at the beginning). No need to google for the documentation. Import "re" modul...
2. If you want to see the whole source code of a function (or a class/module), add two question marks instead of one:
your_function?? Type "import pandas&qu...This will display the whole...
Read 30 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!