【问题标题】:jupyter notebook html table cannot displayjupyter notebook html table cannot display
【发布时间】:2022-12-27 06:51:00
【问题描述】:

why jupyter notebook cannot display html 'table', but other html elements are okay, and how can I solve this problem?

below is my source code and my result

source code

<table style="width:20%">
     <tr> 
       <td> **L1** </td> 
       <td> 1.1 </td> 
     </tr>
</table>

result

 <tr> 
   <td> **L1** </td> 
   <td> 1.1 </td> 
 </tr>

it only removes tag &lt;table&gt; and does nothing else.

【问题讨论】:

    标签: html jupyter


    【解决方案1】:

    That's interesting, because the table (created by pasting your code) comes out just fine for me:

    From my personal experience, I can definitely say that Markdown in jupyter notebooks is somehow volatile/unpredictable when it comes to HTML. For example, I myself have been looking for a fix for Jupyter just arbitrarily doing line breaks in the table header (esp. in formulas) and I have found this fix, but it doesn't work for me at all.

    I know this is not particularly helpful, but at least it demonstrates that the table not being rendered correctly in your case was either some unexpected behaviour or some bug which maybe, or maybe not, has been fixed in the course of the last year.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-16
      • 1970-01-01
      • 1970-01-01
      • 2019-11-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多