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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -