跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • pycharm 2020.3 里面自带的 jupyter 使用 Javascript 报错 ReferenceError: require is not defined
未分類
17 3 月 2021

pycharm 2020.3 里面自带的 jupyter 使用 Javascript 报错 ReferenceError: require is not defined

pycharm 2020.3 里面自带的 jupyter 使用 Javascript 报错 ReferenceError: require is not defined

資深大佬 : hulalahei 1

from IPython.core.display import display, Javascript

display( Javascript( “”” require.config({ paths: { DT: ‘//cdn.datatables.net/1.10.20/js/jquery.dataTables.min’, } }); $(‘head’).append(‘<link rel=”stylesheet” type=”text/css” href=”//cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css”>’); $(‘head’).append(‘<style> td, th {{text-align: center;}}</style>’) “”” ) )

这段代码在 chrome 里打开没啥问题,使用 pycharm 自带的 jupyter 就会报错。

log 如下: 上午 10:59 Jupyter Javascript: ReferenceError: require is not defined

上午 10:59 Jupyter Javascript: TypeError: Cannot read property ‘config’ of undefined: TypeError: Cannot read property ‘config’ of undefined

这是 pycharm 自身的 bug 吗???谢谢各位老哥啦。

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具