ipython / ipython/ipykernel

Add __file__ variable supported by traditional Python scripts to Notebook environment

Open
#227 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.