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);
}
求各位大佬看看有啥解决办法