# Pluto: Get current notebook file path

**URL:** <https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543>\
**Category:** General Usage\
**Tags:** filesystem, pluto\
**Created:** [May 4, 2021, 8:16pm UTC](https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543 "2021-05-04T20:16:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pangoraw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pangoraw/32/24719_2.png) [@Pangoraw](https://discourse.julialang.org/u/Pangoraw)\
**Post date:** [May 5, 2021, 10:50am UTC](https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543/3 "2021-05-05T10:50:28Z")

</div>

You can use the `@ __FILE__ ` macro and remove the trailing characters after the `#==#<...>`. By doing something like:

```julia
notebookpath() = replace(@ __FILE__ , r"#==#.*" => "")

```

---

_[View the full topic](https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543)._
