ipython / ipython/ipykernel

Add __file__ variable supported by traditional Python scripts to Notebook environment

Đang mở
#227 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
734
Fork
412
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
8

Mô tả

It would be cool, if the ``__file__`` variable present in traditional Python scripts also existed with a notebook. This could be especially helpful when generating dynamic paths.

Other Python double underscore methods, such as ``__doc__`` and ``__name__``, are already present. Why not add this one?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.