jupyter notebook创建.ipynb报Bad file descriptor

anaconda中删除原有的一个环境后,新创建Python环境,安装jupyter notebook以后,正常打开,点击new新建Python3,报错Bad file descriptor,重装anaconda后,base(root)环境没有这个问题,新建环境,仍然报Bad file descriptor错误,对网页检查发现stack/notebook/js/main.min.js中出错

 var id_actions_dict = {            

'#trust_notebook' : 'trust-notebook',            

'#rename_notebook' : 'rename-notebook',            

'#find_and_replace' : 'find-and-replace',            

'#save_checkpoint': 'save-notebook',            

'#shutdown_kernel': 'confirm-shutdown-kernel',            

'#restart_kernel': 'confirm-restart-kernel',            

'#restart_clear_output': 'confirm-restart-kernel-and-clear-output',            

'#restart_run_all': 'confirm-restart-kernel-and-run-all-cells',            

'#close_and_halt': 'close-and-halt',            

'#int_kernel': 'interrupt-kernel',            

'#cut_cell': 'cut-cell',            

'#copy_cell': 'copy-cell',            

'#delete_cell': 'delete-cell',            

'#undelete_cell': 'undo-cell-deletion',            

'#split_cell': 'split-cell-at-cursor',       

'#merge_cell_above': 'merge-cell-with-previous-cell',            

'#merge_cell_below': 'merge-cell-with-next-cell',            

'#move_cell_up': 'move-cell-up',            

'#move_cell_down': 'move-cell-down',            

'#toggle_header': 'toggle-header',            

'#toggle_toolbar': 'toggle-toolbar',            

'#toggle_line_numbers': 'toggle-all-line-numbers',            

'#insert_cell_above': 'insert-cell-above',            

'#insert_cell_below': 'insert-cell-below',            

'#run_cell': 'run-cell',            

'#run_cell_select_below': 'run-cell-and-select-next',            

'#run_cell_insert_below': 'run-cell-and-insert-below',            

'#run_all_cells': 'run-all-cells',            

'#run_all_cells_above': 'run-all-cells-above',            

'#run_all_cells_below': 'run-all-cells-below',            

'#to_code': 'change-cell-to-code',            

'#to_markdown': 'change-cell-to-markdown',            

'#to_raw': 'change-cell-to-raw',            

'#toggle_current_output': 'toggle-cell-output-collapsed',            

'#toggle_current_output_scroll': 'toggle-cell-output-scrolled',            

'#clear_current_output': 'clear-cell-output',            

'#toggle_all_output': 'toggle-all-cells-output-collapsed',            

'#toggle_all_output_scroll': 'toggle-all-cells-output-scrolled',            

'#clear_all_output': 'clear-all-cells-output',            

'#cut_cell_attachments': 'cut-cell-attachments',            

'#copy_cell_attachments': 'copy-cell-attachments',            

'#paste_cell_attachments': 'paste-cell-attachments',            

'#insert_image': 'insert-image',            

'#edit_keyboard_shortcuts' : 'edit-command-mode-keyboard-shortcuts',        };        

for(var idx in id_actions_dict){            

if (!id_actions_dict.hasOwnProperty(idx)){                

continue;            }            var 

id_act = 'jupyter-

notebook:'+id_actions_dict[idx];            

if(!that.actions.exists(id_act)){                

console.warn('actions', id_act, 'does not 

exist, still binding it in case it will be 

defined later...');            }            

// Immediately-Invoked Function Expression 

cause JS.            (function(that, 

id_act, idx){                

that.element.find(idx).click(function(event

){                    

that.actions.call(id_act, event);                

});            })(that, id_act, idx);        

}

求各位大佬看看有啥解决办法

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值