How to get tab space in 'markdown' cell of Jupyter Notebook

老子叫甜甜 提交于 2019-12-23 13:57:11

问题


I am writing descriptive ipynb file and need to give output in markdown with space, but unable to add tab space for printing structured data.


回答1:


  1. Type "nbsp" to add a single space.
  2. Type "ensp" to add 2 spaces.
  3. Type "emsp" to add 4 spaces.
  4. Use the non-breaking space (nbsp) 4 times to insert a tab.

eg.  This is an example.




回答2:


If I understand your question then I don't think this has anything to do with Jupyter cells. For example, are you able to type a tab key into a Stackoverflow question box? Most browsers do not allow tab keys in most dialogs on most websites -- instead, tab switches to the next area.

Some options:

  1. cut a tab from a text application, paste into a Jupyter cell. (works)
  2. try using a browser-specific extension, like TabMeansTab for Chrome or Tabinta for Firefox.

See also further discussions of typing tab keys in browsers in general on SuperUser:

  • https://superuser.com/questions/67934/typing-the-tab-character-in-browser-text-boxes
  • https://superuser.com/questions/522627/how-to-use-tab-key-to-indent-within-a-textfield-instead-of-jumping-to-next-elem



回答3:


I just had this problem and resorted to the following:

This is text with $\;\;\;\;\;\;$ some space inserted.



来源:https://stackoverflow.com/questions/47061626/how-to-get-tab-space-in-markdown-cell-of-jupyter-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!