当前位置:网站首页>Jupyter notebook sets the default browser to open with an error syntaxerror: (Unicode error) 'UTF-8' codec can't decode byte 0xd4
Jupyter notebook sets the default browser to open with an error syntaxerror: (Unicode error) 'UTF-8' codec can't decode byte 0xd4
2022-06-12 08:56:00 【Liu Wei】
jupyter notebook Set the default browser to open and report an error
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xd4 in position 0: invalid continuation byte
win The default code of the system's built-in Notepad is ANSI , Just put py Script reopens with notebook ,
Save as code as UTF-8 Of py Script , Running py The script ok 了 .
Change the name of the file : jupyter_notebook_config.py
Code reference
import webbrowser
webbrowser.register( "Cent Browser", None, webbrowser.GenericBrowser(r"C:\Users\ Chinese user name \AppData\Local\CentBrowser\Application\chrome.exe"))
c.NotebookApp.browser = "Cent Browser"
Set the default browser ,cmd Input
jupyter notebook --generate-config
Find the default configuration file py file
Open in Notepad , And find # c.NotebookApp.browser = This statement
Below this statement , Enter the following statement : The picture below is Chrome Configuration of ,** Attention double \\ **
# c.NotebookApp.password = '' here
import webbrowser
webbrowser.register('chrome', None, webbrowser.GenericBrowser(u'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'))
c.NotebookApp.browser = 'chrome'
边栏推荐
- 通俗理解时域采样与频域延拓
- 进制GB和GiB的区别
- Display the remaining valid days according to the valid period
- MFS explanation (IV) -- MFS management server installation and configuration
- 【字符集八】char8_t、char16_t、char32_t、wchar、char
- 深拷贝与浅拷贝的区别
- 利用nvm动态调整nodejs版本,解决因为node版本过高或过低导致项目无法运行和打包
- 《MATLAB 神经网络43个案例分析》:第8章 GRNN网络的预测----基于广义回归神经网络的货运量预测
- Redis installation test
- Shell基本语法--算数运算
猜你喜欢

【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C
![[untitled] task3 multiple recall](/img/84/81ada5dd7afac62c31a52e743547e9.png)
[untitled] task3 multiple recall

Background location case II

Inheritance of row height

Chapter 8 - two basic problems of data processing

xshell启动遇到“由于找不到mfc110.dll,无法继续执行代码的解决方法”

IP, DNS, domain name, URL, hosts

Background position position NOUN

ISCSI详解(五)——ISCSI客户端配置实战

ip、DNS、域名、URL、hosts
随机推荐
When converting tensor to ndarray in tensorflow, the run or Eval function is constantly called in the loop, and the code runs more and more slowly!
Chapter 8 - two basic problems of data processing
Difference between binary GB and gib
Shell基本语法--数组
[character set 7] what are the wide character codes and multi byte codes of Chinese characters
[character set 6] wide string and multi byte character conversion
(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
[character set 8] char8_ t、char16_ t、char32_ t、wchar、char
域名映射到指定IP
IP, DNS, domain name, URL, hosts
RuntimeError:Input and parameter tensors are not at the same device, found input tensor at cuda:0 an
Shell basic syntax -- array
Background fixing effect
【数据存储】浮点型数据在内存中的存储
Domain name mapping to specified IP
调整svg宽高
《MATLAB 神經網絡43個案例分析》:第7章 RBF網絡的回歸--非線性函數回歸的實現
ip、DNS、域名、URL、hosts
第七章-更灵活定位内存地址
Make a simple page with the websql database of HTML5: