question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Possible missing `end` keyword argument in `Text.from_markup`

See original GitHub issue

Is Text.from_markup missing an end keyword-argument?

I use Text("Hello, world!", end="") to create Text object without a newline. If I want to use console markup, I’d want to use Text.from_markup(":rocket: Hello, world!", end=""), but this throws an argument error.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Mar 17, 2022

You may be right! In the meantime, you can set end after you have created the Text object with text.end=''

0reactions
github-actions[bot]commented, Mar 22, 2022

Did I solve your problem?

Why not buy the devs a coffee to say thanks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting SyntaxError for print with keyword argument end=' '
The syntax isn't available in Python 2.x because print is still a statement. print("foo" % bar, end=" ").
Read more >
Missing argument error messages should be closer to python's
In my opinion, the python error message is clearer. Reproducible examp... ... Invalid keyword argument; Missing required keyword arguments ...
Read more >
Your Guide to the Python print() Function
As you can see, the end keyword argument will accept arbitrary strings. Note: Looping over lines in a text file preserves their own...
Read more >
8 Bulldozer Feature Engineering
At the end, we'll plot the feature transformations versus model scores to ... 1If you get an error “read_feather() got an unexpected keyword...
Read more >
Python end parameter in print() - GeeksforGeeks
Python's print() function comes with a parameter called 'end'. By default, the value of this parameter is '\n', i.e. the new line character....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found