我在 Windows 10 中使用 Jupyter Notebook 和 Python 3.9.6。我已经使用此命令安装了 Jupyter Notebookpip install jupyter并使用此命令运行它jupyter notebook。因此,启动笔记本后,在终端中我也看到一些错误,但到目前为止我似乎没有看到任何影响。但仍然想检查一下,该错误实际上表明了什么,有没有办法修复它?
[I 18:25:02.479 NotebookApp] Serving notebooks from local directory: C:\Users\maryo\Desktop\python\jpnb
[I 18:25:02.479 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 18:25:02.479 NotebookApp] http://localhost:8888/?token=dfd2534b828985fcc116e9c400fd31381e9c8f19034e39d3
[I 18:25:02.479 NotebookApp] or http://127.0.0.1:8888/?token=dfd2534b828985fcc116e9c400fd31381e9c8f19034e39d3
[I 18:25:02.479 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:25:02.508 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/maryo/AppData/Roaming/jupyter/runtime/nbserver-17088-open.html
Or copy and …Run Code Online (Sandbox Code Playgroud) 我收到以下错误消息,但找不到修复它的方法。
NoReverseMatch at /login/
Reverse for '' not found. '' is not a valid view function or pattern name.
Request Method: GET
Request URL: http://127.0.0.1:8000/login/?next=/
Django Version: 2.0.1
Exception Type: NoReverseMatch
Exception Value:
Reverse for '' not found. '' is not a valid view function or pattern name.
Exception Location: C:\Users\gokul\Desktop\TESTING\data\lib\site-packages\django\urls\resolvers.py in _reverse_with_prefix, line 632
Python Executable: C:\Users\gokul\Desktop\TESTING\data\Scripts\python.exe
Python Version: 3.5.2
Python Path:
['C:\\Users\\gokul\\Desktop\\TESTING\\data\\tagent',
'C:\\Users\\gokul\\Desktop\\TESTING\\data\\Scripts\\python35.zip',
'C:\\Users\\gokul\\Desktop\\TESTING\\data\\DLLs',
'C:\\Users\\gokul\\Desktop\\TESTING\\data\\lib',
'C:\\Users\\gokul\\Desktop\\TESTING\\data\\Scripts',
'c:\\program files\\python35\\Lib',
'c:\\program files\\python35\\DLLs',
'C:\\Users\\gokul\\Desktop\\TESTING\\data',
'C:\\Users\\gokul\\Desktop\\TESTING\\data\\lib\\site-packages']
> python manage.py runserver
Performing system …Run Code Online (Sandbox Code Playgroud) 以下是我的 terraform 模块的变量声明,该模块在我们的云中使用,这些变量的输入是通过自动化解决方案之一获得的。现在,我想重现我想从下面的变量定义创建 tfvars 文件的问题之一。
变量.tf:
variable "docker" {
type = object({
image_name = string
image_location = string
docker_ports = object({
internal = number
external = number
})
rmodelling = object({
lang = object({
version = number
enabled = bool
policy = object({
identification = string
})
})
impl = object({
version = number
enabled = bool
policy = object({
identification = string
})
})
})
})
}
Run Code Online (Sandbox Code Playgroud)
我已经尝试过类似的方法,但是对于下一个嵌套对象,我不太确定如何放下它们。有人可以指导或提供一些指示吗?
terraform.tfvars:
docker = {
image_name = "Ubuntu 18.04"
image_location = "https://registry.jd.com/ubuntu/<custom_location>" …Run Code Online (Sandbox Code Playgroud)