<jupyter_start><jupyter_text>String formatting<jupyter_code>import physipy
from physipy import m
q = 1.23456789*m
print(str(q))
q._compute_value()<jupyter_output><empty_output><jupyter_text>Standard formatting<jupyter_code>print(f"{q:.2f}")
print(f"{q:+.2f}")
print(f"{q:+9.2f}")
print(f"{q:*^15}")
print(f"{q: >-12.3f}")<jupyter_output>1.23 m
+1.23 m
    +1.23 m
**1.23456789*** m
       1.235 m<jupyter_text>physipy formatting<jupyter_code>print(f"{q}")
print(f"{q:~}")  # ~ : no prefix before unit<jupyter_output>1.23456789 m
1.23456789m
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.10740740740740741, 'mean_word_length': 7.453125, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '572948', 'license': 'MIT', 'n_tokens_mistral': 291, 'n_tokens_neox': 264, 'n_words': 34, 'path': 'docs/String formatting.ipynb', 'repo_name': 'mocquin/physipy', 'size': '540'}