Skip to content

Tag: python

Python put requests on a CIRCUITPY

I have a CIRCUITPY macro board (keybow 2040) that I want to make automatically download a file, but I don’t have enough storage space on the board to put all the required libraries for the python requests module. The board’s available storage space is 866 KB, which is not nearly enough storage spa…

How to make fighting game command inputs in PyGame

I am currently making a fighting game and was wondering how command inputs could be added. I understand it is kind of irrelevant and many substitutes are possible, but it would be nice to use familiar fighting game inputs. I currently have something like this: The “commandcount” helps keep the win…

Bokeh: how to custom scale of ColorBar?

I make a figure (empty to simplify the code but I will add many elements), and a ColorBar to designate the color of different elements. Now the color bar gives this result: But I’m not satisfied because I’d like to have a different scale of colors where all positive values are red and all negative…

Output without “print()” in SublimeText

Is there a way/plug-in to enable output without “print()” in SublimeText? For example, Output: Wanted: Output: P.s. I also tried below: Answer I am pretty sure that the answer is no. You can rename the print function to make it less noticable like this: Output is 2 Alternatively: As a few people m…