简体   繁体   English

Jupyter Notebook隐藏数据库连接Python

[英]Jupyter Notebook Hide DB Connection Python

How I hidden informations secrets like connection DB or Parameter Plotly in Jupyter Notebook? 如何在Jupyter Notebook中隐藏连接DB或Parameter Plotly等信息秘密?

I´m think in create json file out folder Jupyter and access with path using ../ Someone have other option? 我认为在Jupyter文件夹中创建json文件并使用../进行路径访问有人可能还有其他选择吗?

There are some ways to hide the code cells. 有一些隐藏代码单元的方法。 Here is a Jupyter notebook extension for hiding code cells. 这是Jupyter笔记本扩展,用于隐藏代码单元。 If you only would like to share the results of your work, I guess after setting your DB connection/parameter you can just delete the cell that contains the sensitive information. 如果您只想共享工作结果,那么我想在设置数据库连接/参数后,您只需删除包含敏感信息的单元格即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM