Jupyter notebook not printing underscores? -


jupyter notebook refuses print underscores in strings.

task_line = '### [task] building app wonders \n' task_pattern = "# [task]"  task_name = task_line.split(task_pattern)[-1].strip() task_name.replace(" ", "_") 

prints: 'building_the_app_for_wonders'

however, stripped down example replace correctly:

task_name = 'building app wonders'  task_name.replace(" ", "_") 

prints: 'building_the_app_for_wonders'

what cause of this?

the problem not jupyter notebook way underscore rendered in example. browser decided not show underscore particular resolution. :)

enter image description here

zooming in show it's presentation problem.

enter image description here


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -