{"action":"created","issue":{"url":"https://api.github.com/repos/hgrecco/pint/issues/160","labels_url":"https://api.github.com/repos/hgrecco/pint/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/hgrecco/pint/issues/160/comments","events_url":"https://api.github.com/repos/hgrecco/pint/issues/160/events","html_url":"https://github.com/hgrecco/pint/issues/160","id":35744322,"number":160,"title":"UnitsContainer print","user":{"login":"romarro","id":7783693,"avatar_url":"https://avatars.githubusercontent.com/u/7783693?v=3","gravatar_id":"","url":"https://api.github.com/users/romarro","html_url":"https://github.com/romarro","followers_url":"https://api.github.com/users/romarro/followers","following_url":"https://api.github.com/users/romarro/following{/other_user}","gists_url":"https://api.github.com/users/romarro/gists{/gist_id}","starred_url":"https://api.github.com/users/romarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romarro/subscriptions","organizations_url":"https://api.github.com/users/romarro/orgs","repos_url":"https://api.github.com/users/romarro/repos","events_url":"https://api.github.com/users/romarro/events{/privacy}","received_events_url":"https://api.github.com/users/romarro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hgrecco/pint/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-06-15T07:32:57Z","updated_at":"2015-02-06T20:33:55Z","closed_at":"2015-02-06T20:33:55Z","body":"Hi I want to print only the units of a quantity (for a label in a plot). But it doesn't print the abbreviated units  even if I am formatting it with ~\r\nhere is the code:\r\n>>> from __init__ import um,Q_\r\n>>> x=125.3*um['l/s']\r\n>>> print x\r\n125.3 l/s\r\n>>> x.units\r\n<UnitsContainer({'liter': 1.0, 'second': -1.0})>\r\n>>> print x.units\r\nliter / second\r\n>>> print '{:~}'.format(x.units)\r\nliter / second\r\n>>> print '{:~L}'.format(x.units)\r\n\\frac{liter}{second}\r\n\r\nBut with latex formatting works\r\nis there a workaround?\r\n\r\nThanks for help "},"comment":{"url":"https://api.github.com/repos/hgrecco/pint/issues/comments/73307471","html_url":"https://github.com/hgrecco/pint/issues/160#issuecomment-73307471","issue_url":"https://api.github.com/repos/hgrecco/pint/issues/160","id":73307471,"user":{"login":"hgrecco","id":278566,"avatar_url":"https://avatars.githubusercontent.com/u/278566?v=3","gravatar_id":"","url":"https://api.github.com/users/hgrecco","html_url":"https://github.com/hgrecco","followers_url":"https://api.github.com/users/hgrecco/followers","following_url":"https://api.github.com/users/hgrecco/following{/other_user}","gists_url":"https://api.github.com/users/hgrecco/gists{/gist_id}","starred_url":"https://api.github.com/users/hgrecco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgrecco/subscriptions","organizations_url":"https://api.github.com/users/hgrecco/orgs","repos_url":"https://api.github.com/users/hgrecco/repos","events_url":"https://api.github.com/users/hgrecco/events{/privacy}","received_events_url":"https://api.github.com/users/hgrecco/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T20:33:55Z","updated_at":"2015-02-06T20:33:55Z","body":"I think the current is fixed in develop. Please reopen if you find any problem."}}