惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

Jupyter

SSL 认证莫名其妙报错了,需要引起警惕吗? - V2EX 这是什么 jupyter 插件,感觉挺酷 - V2EX 现在人工智能专业这么火,大家 jupyter 常用的一些插件和功能是啥? - V2EX pycharm 的里的 jupyternotebook 能断点调试吗? - V2EX Jupyter Notebook 到底是用来干啥的? - V2EX pycharm 里连接远程 jupyter,自动补全怎么搞? - V2EX 单元格如何取消关联 - V2EX Jupyter 里有什么插件 / Kernel 可以实现类似 ob-http 的功能 - V2EX 如何计算重复率统计? - V2EX 如何在内网环境从 Windows SSH 访问 Linux 服务器 - V2EX anaconda3 环境下,在 cmd 输入"jupyter lab"显示"Exception: Jupyter command `jupyter-lab` not found." - V2EX jupyter 中通过 ctypes 调用 printf()时,不显示 printf()打印内容 - V2EX jupyter-nbconvert.exe --generate-config 报错 UnicodeEncodeError: 'gbk' - V2EX jupyter 转 markdown 要是能内嵌图片就好了 - V2EX JupyterLab 插件功能小贴士 - V2EX Jupyter 的输出窗口可以同时动态刷新两种图吗? - V2EX 最近整理了一些 Jupyter book 文档 - V2EX jupyter 怎么读 - V2EX 使用 Jupyter notebook 生成柱状图失败,问题出在哪?? - V2EX 求助, Jupyter 已经启动,但是网页无法显示 - V2EX 用 Jupyter 写非 Python 体验如何? - V2EX 写了一些 Jupyter notebook 的扩展插件 - V2EX Supervisor 无法停止 Jupyter Notebook - V2EX Jupyter 上的 Lua 与 torch7 - V2EX
jupyter-notebook 内置环境变量问题 - V2EX
shiyuu · 2022-11-21 · via Jupyter

shiyuu

V2EX  ›  Jupyter

 

shiyuu · 2022 年 11 月 21 日 · 1752 次点击

这是一个创建于 1301 天前的主题,其中的信息可能已经有所发展或是发生改变。

使用的模块比较特殊
import pyfstat

在运行的时候会因为变量问题无法 import

按照官方的办法把当前的环境添加到变量才能正常 import
现在有什么办法,不用每一个项目都要用这样的办法添加变量?
linux 系统下的变量全都添加过了,但是在 jupyter-notebook 新建或者激活新项目都不会加载这个目录作为变量

import os
import sys
env_bin = os.path.dirname(sys.executable)
if not env_bin in os.environ["PATH"]:
os.environ["PATH"] = f'{env_bin}:{os.environ["PATH"]}'