- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对编码还很陌生,非常感谢任何对此的帮助。它在一周前工作,现在我无法连接我的笔记本内核。我使用 anaconda 命令提示符打开 notebooke(ipython 笔记本),它打开了 jupyter iPython 页面。我按新的 python2 笔记本。 30 秒后内核死亡(我不认为它首先连接)。这是 anaconda 命令提示符中出现的错误。我希望我能明白它在说什么。我把它交给了堆栈溢出社区的知识渊博的人。感谢您的帮助。 ~马克
global HistoryManager = <class 'IPython.core.history.HistoryManager'>
global shell = undefined
self = <ipykernel.zmqshell.ZMQInteractiveShell object at 0x0000000003D0AEB8>
global parent = undefined
1637 self.configurables.append(self.history_manager)
1638
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in __init__(self=<IPython.core.history.HistoryManager object>, shell=<ipykernel.zmqshell.ZMQInteractiveShell object>, config=None, **traits={'parent': <ipykernel.zmqshell.ZMQInteractiveShell object>})
518 self.save_thread.start()
519
--> 520 self.new_session()
self.new_session = <bound method HistoryManager.new_session of <IPython.core.history.HistoryManager object at 0x0000000003D20898>>
521
522 def _get_hist_file_name(self, profile=None):
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in new_session(self=<IPython.core.history.HistoryManager object>, conn=None)
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in needs_sqlite(f=<function new_session>, self=<IPython.core.history.HistoryManager object>, *a=(None,), **kw={})
66 return []
67 else:
---> 68 return f(self, *a, **kw)
f = <function new_session at 0x0000000003796048>
self = <IPython.core.history.HistoryManager object at 0x0000000003D20898>
a = (None,)
kw = {}
69
70
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in new_session(self=<IPython.core.history.HistoryManager object>, conn=<sqlite3.Connection object>)
536 with conn:
537 cur = conn.execute("""INSERT INTO sessions VALUES (NULL, ?, NULL,
--> 538 NULL, "") """, (datetime.datetime.now(),))
global NULL = undefined
global Close = undefined
global the = undefined
global database = undefined
global session = undefined
global filling = undefined
global end = undefined
global time = undefined
global line = undefined
global count.UPDATE = undefined
global sessions = undefined
global SET = undefined
global num_cmds = undefined
global WHERE = undefined
539 self.session_number = cur.lastrowid
540
OperationalError: attempt to write a readonly database
[W 18:20:53.372 NotebookApp] Timeout waiting for kernel_info reply from 05f482d7-7690-4783-a20f-46c25a5944ce
[I 18:20:55.388 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 05f482d7-7690-4783-a20f-46c25a5944ce restarted
---------------------------------------------------------------------------
OperationalError Traceback (most recent call last)
C:\Users\Admin\Anaconda2\lib\runpy.pyc in _run_module_as_main(mod_name='ipykernel.__main__', alter_argv=1)
160 sys.argv[0] = fname
161 return _run_code(code, main_globals, None,
--> 162 "__main__", fname, loader, pkg_name)
fname = 'C:\\Users\\Admin\\Anaconda2\\lib\\site-packages\\ipykernel\\__main__.py'
loader = <pkgutil.ImpLoader instance at 0x0000000003BCFD08>
pkg_name = 'ipykernel'
163
164 def run_module(mod_name, init_globals=None,
C:\Users\Admin\Anaconda2\lib\runpy.pyc in _run_code(code=<code object <module> at 00000000026ADDB0, file ...lib\site-packages\ipykernel\__main__.py", line 1>, run_globals={'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': r'C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\__main__.py', '__loader__': <pkgutil.ImpLoader instance>, '__name__': '__main__', '__package__': 'ipykernel', 'app': <module 'ipykernel.kernelapp' from 'C:\Users\Adm...onda2\lib\site-packages\ipykernel\kernelapp.pyc'>}, init_globals=None, mod_name='__main__', mod_fname=r'C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\__main__.py', mod_loader=<pkgutil.ImpLoader instance>, pkg_name='ipykernel')
70 __loader__ = mod_loader,
71 __package__ = pkg_name)
---> 72 exec code in run_globals
code = <code object <module> at 00000000026ADDB0, file "C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\__main__.py", line 1>
run_globals = {'__builtins__': <module '__builtin__' (built-in)>, '__file__': 'C:\\Users\\Admin\\Anaconda2\\lib\\site-packages\\ipykernel\\__main__.py', '__package__': 'ipykernel', '__name__': '__main__', 'app': <module 'ipykernel.kernelapp' from 'C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\kernelapp.pyc'>, '__loader__': <pkgutil.ImpLoader instance at 0x0000000003BCFD08>, '__doc__': None}
73 return run_globals
74
C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\__main__.py in <module>()
1 if __name__ == '__main__':
2 from ipykernel import kernelapp as app
----> 3 app.launch_new_instance()
global app.launch_new_instance = <bound method MetaHasTraits.launch_instance of <class 'ipykernel.kernelapp.IPKernelApp'>>
C:\Users\Admin\Anaconda2\lib\site-packages\traitlets\config\application.pyc in launch_instance(cls=<class 'ipykernel.kernelapp.IPKernelApp'>, argv=None, **kwargs={})
589 """
590 app = cls.instance(**kwargs)
--> 591 app.initialize(argv)
app.initialize = <bound method IPKernelApp.initialize of <ipykernel.kernelapp.IPKernelApp object at 0x0000000003C8DD30>>
argv = None
592 app.start()
593
C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\kernelapp.pyc in initialize(self=<ipykernel.kernelapp.IPKernelApp object>, argv=None)
C:\Users\Admin\Anaconda2\lib\site-packages\traitlets\config\application.pyc in catch_config_error(method=<function initialize>, app=<ipykernel.kernelapp.IPKernelApp object>, *args=(None,), **kwargs={})
73 """
74 try:
---> 75 return method(app, *args, **kwargs)
method = <function initialize at 0x0000000003C91908>
app = <ipykernel.kernelapp.IPKernelApp object at 0x0000000003C8DD30>
args = (None,)
kwargs = {}
76 except (TraitError, ArgumentError) as e:
77 app.print_help()
C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\kernelapp.pyc in initialize(self=<ipykernel.kernelapp.IPKernelApp object>, argv=None)
380 self.init_io()
381 self.init_signal()
--> 382 self.init_kernel()
self.init_kernel = <bound method IPKernelApp.init_kernel of <ipykernel.kernelapp.IPKernelApp object at 0x0000000003C8DD30>>
383 # shell init steps
384 self.init_path()
C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\kernelapp.pyc in init_kernel(self=<ipykernel.kernelapp.IPKernelApp object>)
319 log=self.log,
320 profile_dir=self.profile_dir,
--> 321 user_ns=self.user_ns,
global user_ns = undefined
self.user_ns = None
322 )
323 kernel.record_ports(self.ports)
C:\Users\Admin\Anaconda2\lib\site-packages\traitlets\config\configurable.pyc in instance(cls=<class 'ipykernel.ipkernel.IPythonKernel'>, *args=(), **kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <ipykernel.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <jupyter_client.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None})
378 # Create and save the instance
379 if cls._instance is None:
--> 380 inst = cls(*args, **kwargs)
inst = undefined
cls = <class 'ipykernel.ipkernel.IPythonKernel'>
args = ()
kwargs = {'log': <logging.Logger object at 0x0000000003CA3278>, 'parent': <ipykernel.kernelapp.IPKernelApp object at 0x0000000003C8DD30>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object at 0x0000000003CE9AC8>, <zmq.eventloop.zmqstream.ZMQStream object at 0x0000000003CE9C50>], 'user_ns': None, 'iopub_socket': <zmq.sugar.socket.Socket object at 0x0000000003CA2348>, 'profile_dir': <IPython.core.profiledir.ProfileDir object at 0x0000000003CAEA20>, 'session': <jupyter_client.session.Session object at 0x0000000003CAEB00>, 'stdin_socket': <zmq.sugar.socket.Socket object at 0x0000000003CA23A8>}
381 # Now make sure that the instance will also be returned by
382 # parent classes' _instance attribute.
C:\Users\Admin\Anaconda2\lib\site-packages\ipykernel\ipkernel.pyc in __init__(self=<ipykernel.ipkernel.IPythonKernel object>, **kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <ipykernel.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <jupyter_client.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None})
45 user_module = self.user_module,
46 user_ns = self.user_ns,
---> 47 kernel = self,
global kernel = undefined
self = <ipykernel.ipkernel.IPythonKernel object at 0x0000000003CE9D68>
48 )
49 self.shell.displayhook.session = self.session
C:\Users\Admin\Anaconda2\lib\site-packages\traitlets\config\configurable.pyc in instance(cls=<class 'ipykernel.zmqshell.ZMQInteractiveShell'>, *args=(), **kwargs={'kernel': <ipykernel.ipkernel.IPythonKernel object>, 'parent': <ipykernel.ipkernel.IPythonKernel object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'user_module': None, 'user_ns': None})
378 # Create and save the instance
379 if cls._instance is None:
--> 380 inst = cls(*args, **kwargs)
inst = undefined
cls = <class 'ipykernel.zmqshell.ZMQInteractiveShell'>
args = ()
kwargs = {'kernel': <ipykernel.ipkernel.IPythonKernel object at 0x0000000003CE9D68>, 'user_ns': None, 'profile_dir': <IPython.core.profiledir.ProfileDir object at 0x0000000003CAEA20>, 'parent': <ipykernel.ipkernel.IPythonKernel object at 0x0000000003CE9D68>, 'user_module': None}
381 # Now make sure that the instance will also be returned by
382 # parent classes' _instance attribute.
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\interactiveshell.pyc in __init__(self=<ipykernel.zmqshell.ZMQInteractiveShell object>, ipython_dir=None, profile_dir=<IPython.core.profiledir.ProfileDir object>, user_module=None, user_ns=None, custom_exceptions=((), None), **kwargs={'kernel': <ipykernel.ipkernel.IPythonKernel object>, 'parent': <ipykernel.ipkernel.IPythonKernel object>})
511 self.db = PickleShareDB(os.path.join(self.profile_dir.location, 'db'))
512
--> 513 self.init_history()
self.init_history = <bound method ZMQInteractiveShell.init_history of <ipykernel.zmqshell.ZMQInteractiveShell object at 0x0000000003C8DEB8>>
514 self.init_encoding()
515 self.init_prefilter()
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\interactiveshell.pyc in init_history(self=<ipykernel.zmqshell.ZMQInteractiveShell object>)
1634 def init_history(self):
1635 """Sets up the command history, and starts regular autosaves."""
-> 1636 self.history_manager = HistoryManager(shell=self, parent=self)
self.history_manager = None
global HistoryManager = <class 'IPython.core.history.HistoryManager'>
global shell = undefined
self = <ipykernel.zmqshell.ZMQInteractiveShell object at 0x0000000003C8DEB8>
global parent = undefined
1637 self.configurables.append(self.history_manager)
1638
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in __init__(self=<IPython.core.history.HistoryManager object>, shell=<ipykernel.zmqshell.ZMQInteractiveShell object>, config=None, **traits={'parent': <ipykernel.zmqshell.ZMQInteractiveShell object>})
518 self.save_thread.start()
519
--> 520 self.new_session()
self.new_session = <bound method HistoryManager.new_session of <IPython.core.history.HistoryManager object at 0x0000000003CA3898>>
521
522 def _get_hist_file_name(self, profile=None):
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in new_session(self=<IPython.core.history.HistoryManager object>, conn=None)
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in needs_sqlite(f=<function new_session>, self=<IPython.core.history.HistoryManager object>, *a=(None,), **kw={})
66 return []
67 else:
---> 68 return f(self, *a, **kw)
f = <function new_session at 0x0000000003716048>
self = <IPython.core.history.HistoryManager object at 0x0000000003CA3898>
a = (None,)
kw = {}
69
70
C:\Users\Admin\Anaconda2\lib\site-packages\IPython\core\history.pyc in new_session(self=<IPython.core.history.HistoryManager object>, conn=<sqlite3.Connection object>)
536 with conn:
537 cur = conn.execute("""INSERT INTO sessions VALUES (NULL, ?, NULL,
--> 538 NULL, "") """, (datetime.datetime.now(),))
global NULL = undefined
global Close = undefined
global the = undefined
global database = undefined
global session = undefined
global filling = undefined
global end = undefined
global time = undefined
global line = undefined
global count.UPDATE = undefined
global sessions = undefined
global SET = undefined
global num_cmds = undefined
global WHERE = undefined
539 self.session_number = cur.lastrowid
540
OperationalError: attempt to write a readonly database
最佳答案
您需要找到数据库文件并授予写入权限。该文件的格式为 history.sqlite
,应该可以在 IPython
目录中找到。
关于python - 创建新的 iPython Notebook 时内核死机。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34247029/
我不断收到以下消息:“自上次打开或保存笔记本文件以来,磁盘上的笔记本文件已更改。您想用此处打开的版本覆盖磁盘上的文件,还是加载磁盘上的版本(重新加载页面) )?”在 Jupyter 笔记本上,即使我没
让我们假设,我想打开一个笔记本(即使用我的本地 Jupyter 实例),但我不想用它启动关联的内核(即 Python)。我怎样才能做到这一点? 可能的用例: 我只想从以前的计算中获得笔记本输出。我不想
在将 IPython 笔记本转换为笔记本时,我试图隐藏一些特定的单元格。我想在类里面使用笔记本,并希望从包含问题和答案的主笔记本生成“练习”笔记本。 This post非常有帮助,但由于某种原因,使用
在过去的几个小时里,我一直在试图弄清楚如何将我的 Jupyter Notebook 下载为 pdf。我已经下载了 MiKTeX 并重新安装了 anaconda。下面的完整错误 500内部服务器错误 错
我想要一个完整的文件作为文本文件,而不仅仅是 IPython 笔记本中的一个单元格。 我在 IPython notebook 中写了一些代码,现在我想测试它们,所以我尝试将一些文本文件作为原始数据上传
我在我的办公室电脑上工作,由于安全限制不允许我安装程序(比如 miktex,....)。所以我决定将我的笔记本导出为 .html。 如您所见,渲染效果不佳: 一些代码被删减了 很多空间被破坏了,有很大
如何在终端中编辑我的 jupyter notebook。我只是不喜欢在网络浏览器中打开 jupyter notebook。我用谷歌搜索,但每个答案都与我们如何直接从终端打开笔记本有关。 最佳答案 我建
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
我正在使用 Julia,但并不是很喜欢 IDE(更像是一个笔记本电脑)。所以我第一次使用 Jupyter(实验室和笔记本)。 我从 Anaconda 启动了 Jupyter 并制作了我的笔记本。问题是
我试图用 ipython notebook 在终端中打开 ipython它不会打开 ipython notebook。它给出了以下错误: | ~/documents/ud120-projects/da
尝试从终端启动 jupyter notebook。我目前在正确文件夹中的终端上,并且安装了 python 3.5 和 conda。但它没有启动。 最佳答案 Jupyter Notebooks 允许您打
我有 plotly plotly 的 jupyter 笔记本不会保留 session 之间的 plotly 。 这是在基于官方 jupyter/datascience-notebook docker
我试过使用 pip3 install jupyter 安装 jupyter notebook。每次我启动一个新的 jupyter notebook 时,notebook 都无法连接到内核。请参阅下面的
我懂代码,懂 Markdown。 我已阅读 this Raw cells article ,但看不出太多。 什么是深奥的 NBConvert ? 请投点灯。 最佳答案 更新的文档位于 https://
运行代码后,我可以自动将笔记本保存为HTML。但是,有时结果生成速度太快,因此输出HTML在最后一个单元格中没有输出。 我想知道是否可以告诉文件进行自我保存? 就像是 # In last cell c
我在最近安装了 anaconda 的虚拟机中运行 Ubuntu 14.04。我使用 conda 安装了 jupyter 笔记本。我已经按照我可以在网上找到的所有文档来安装笔记本扩展,但它们无法加载并显
我正在使用 nbconvert通过命令行执行 iPython notebook(如 this answer ): ipython nbconvert --to=html --ExecutePrepro
除了原始 Jupyter Notebook 文件(.ipynb 文件)之外,有时我还会得到一个检查点 .ipynb 文件,该文件似乎直接链接到原始 。 ipynb 文件。 这些检查点文件的用途是什么?
我使用 ssh -L 连接到远程服务器,但如果我合上笔记本电脑盖子或连接丢失,jupyter 笔记本就会断开连接。 重新连接到远程服务器后,“最后一个” session 丢失。 如何才能使其持久?sc
Jupyter 笔记本支持 Markdown 单元格,但它似乎不支持表情符号代码。我想一种方法可能是使用 html 导入图标,如 fontawesome 有人有解决方法吗? 编辑:直接在 jupyte
我是一名优秀的程序员,十分优秀!