About 8,040,000 results
Open links in new tab
  1. How can I print bold text in Python? - Stack Overflow

    Jan 19, 2012 · In Python 3 you can alternatively use cprint as a drop-in replacement for the built-in print, with the optional second parameter for colors or the attrs parameter for bold (and other attributes …

  2. python - how to print bold font when using f-string? - Stack Overflow

    Aug 12, 2021 · for f-string, how to print bold font for either integer or string? I came to this below website saying using "\\033[1m" before and after string. Question is how to use it inside f-string a...

  3. string - How to make a text bold using python - Stack Overflow

    Jul 21, 2021 · I need to make a string to bold. I have used: from colorama import init,Fore, Back, Style y='Hello world' I want to pass the bolded 'y' to another variable.

  4. How can I make certain text bold in Python string formatting?

    May 24, 2024 · Just some extra information: label = tkinter.Label(Window, text="This is Bold, Italic, Underlined and Overstriked Arial Font at 8 pixels.", font=("Arial", 8, "bold italic underlined …

  5. How can I make text bold in Python? - Stack Overflow

    Oct 2, 2014 · I want to be able to change the text to bold in Python. Is there a way to do that? I have been able to change colors with termcolor but nothing so far with bold text. Has anyone tried doing it …

  6. python - How to add bold annotated text to a plot - Stack Overflow

    I want to make an annotated text in a plot using matplotlib. I have tried the following:

  7. python - How to make input text bold in console? - Stack Overflow

    Dec 1, 2019 · I'm looking for a way to make the text that the user types in the console bold input ("Input your name: ") If I type "John", I want it to show up as bold as I'm typing it, something like this Input

  8. python - Draw bold/italic text with PIL? - Stack Overflow

    Nov 29, 2009 · How to draw bold/italic text with PIL? ImageFont.truetype(file, size) has an option to specify font size only.

  9. python - Make axis ticks labels bold when using usetex=True - Stack ...

    Nov 2, 2023 · You have misunderstood the question. The question is how to have bold xticklabels when using plt.rc('text', usetex=True), not how to make thicker plot lines. This does not answer the question.

  10. python - Bold text using format () function - Stack Overflow

    Apr 8, 2021 · 1 Edited answer to include an example of producing bold text in matplotlib and kept my general answer on producing bold text in linux using python: You'll want to use fontweight='bold' as …