Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Have I implemented this function correctly?
Post: RE: Have I implemented this function correctly?

It follows from the formula that the value you get is between 0 and 1. Then they probably just multiply it by 100. I don't know if your code is correct but values between 0 and 1 are what you should e...
22_alias General Coding Help 4 2,357 Oct-19-2021, 01:19 PM
    Thread: Filtering warnings by message
Post: RE: Filtering warnings by message

Great, that was unexpected **biggrin** Thanks for the answer. I'm still curious about how to filter by message as this would allow for finer filtering. PS. Checked: >>> import warnings &...
22_alias General Coding Help 3 4,175 Oct-19-2021, 01:09 PM
    Thread: Filtering warnings by message
Post: Filtering warnings by message

I'm struggling to understand how to use the message argument in warnings.filterwarnings. I am specifically trying to silent a deprecation warning from matplotlib. Here is what I have: import warnings ...
22_alias General Coding Help 3 4,175 Oct-18-2021, 11:32 AM
    Thread: How to paste several lines of codes to the Python console
Post: RE: How to paste several lines of codes to the Pyt...

Quote:Highlighting indicates that some settings are applied. I have had paste/highlight issue in shell (not in Python interactive interpretator) and if I remember correctly it was related to bashrc, i...
22_alias News and Discussions 13 14,901 Dec-17-2020, 09:32 PM
    Thread: How to paste several lines of codes to the Python console
Post: RE: How to paste several lines of codes to the Pyt...

This happen for any code i'd paste, even the most trivial one, so I don't think it's a problem with the syntax, for example: print('a') i = 1doesn't work. The weird thing is: - copypasting with an emp...
22_alias News and Discussions 13 14,901 Dec-16-2020, 04:07 PM
    Thread: How to paste several lines of codes to the Python console
Post: RE: How to paste several lines of codes to the Pyt...

Quote:Do I understand correctly that we are talking about Python interactive interpreter and pasting multiline code there? Yes
22_alias News and Discussions 13 14,901 Dec-16-2020, 02:12 PM
    Thread: How to paste several lines of codes to the Python console
Post: RE: How to paste several lines of codes to the Pyt...

For editing, I'm using old fashioned text editor with an opened console on a separate windows (and also Jupyter sometimes, but the issue doesn't apply here). I've tried PyCharm but it was extremely sl...
22_alias News and Discussions 13 14,901 Dec-16-2020, 12:27 PM
    Thread: How to paste several lines of codes to the Python console
Post: How to paste several lines of codes to the Python ...

I'm not sure in which part of the forum to post this (as this is not really code related). I used to be able to do this until very recently. Now when I try to paste several lines at once I get the er...
22_alias News and Discussions 13 14,901 Dec-16-2020, 11:05 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020