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. :)
zooming in show it's presentation problem.
Comments
Post a Comment