LoginSignup
0
3

More than 5 years have passed since last update.

Jupyter、Colaboratoryでパスワードを隠す方法

Posted at

はじめに

  • JupyterやColaboratoryを他人に見せることを考えるとパスワードやトークンは隠したいですよね

良くないケース

  • ハードコードやinputを利用する

Screenshot from 2018-11-11 01-01-15.png

  • 普通に見えてしまう

良いケース

  • getpassを使う

Screenshot from 2018-11-11 00-30-02.png

  • バッチリですね

終わりに

  • ファイルから認証情報を読み取っても良いと思います
  • 何度も入力するのが面倒であればそちらのほうが良いかも?
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3