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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -