0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter でPythonモジュールを作成・インポートするときに気を付けること

Last updated at Posted at 2018-12-23

Juputerでのモジュール作成・インポートで1時間くらいハマったのでメモ。

  1. ipynbはモジュールとして認識されない!
  2. 元のipynbファイルと同じ名前でpyファイルを作成すると干渉してimportに失敗する!

#対処法
1.「File」→「Download as」から.py形式でモジュールを保存。
2.pyファイルの名前がipynbの名前と被らないように変更する。
 

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?