问题描述
当尝试从anaconda界面启动Jupyter实验室时,我收到以下消息和Jupyter:
const a = [1,2,3,4,5];
const result = [...a.reduce((freqs,item) => freqs.set(item,(freqs.get(item) || 0) + 1),new Map).entries()]
.sort(([,a],[,b]) => b - a)
.flatMap(([value,length]) => Array.from({length}).fill(value))
console.log(JSON.stringify(result))
Traceback (most recent call last):
File "/Users/anaconda3/lib/python3.7/site-packages/jupyterlab_server/server.py",line 20,in
from notebook.notebookapp import aliases,flags,NotebookApp as ServerApp
File "/Users/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py",line 81,in
from .services.kernels.kernelmanager import MappingKernelManager
File "/Users/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py",line 19,in
from jupyter_client.session import Session
File "/Users/anaconda3/lib/python3.7/site-packages/jupyter_client/__init__.py",line 4,in
from .connect import *
File "/Users/anaconda3/lib/python3.7/site-packages/jupyter_client/connect.py",line 32,in
from jupyter_core.paths import jupyter_data_dir,jupyter_runtime_dir,secure_write
ImportError: cannot import name 'secure_write' from 'jupyter_core.paths' (/Users/anaconda3/lib/python3.7/site-packages/jupyter_core/paths.py)
有人知道如何解决此问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)