# Code Comparer can only show the difference of main training file

**URL:** <https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [August 29, 2022, 11:36am UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020 "2022-08-29T11:36:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![geyao](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geyao](https://community.wandb.ai/u/geyao)\
**Post date:** [August 29, 2022, 11:36am UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/1 "2022-08-29T11:36:01Z")

</div>

If I call `wandb.run.log_code(".")`, all python source code files in the current directory are saved in W&B cloud. That’s what I want.

However, only changes in main training file where I call `wandb.init()` can be shown in [Code Comparer](https://docs.wandb.ai/ref/app/features/panels/code#code-comparer). The change in other file (like `helper_funcs.py`) will not appear in code panel. Do you have any suggestions about it?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [August 31, 2022, 2:14pm UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/2 "2022-08-31T14:14:44Z")

</div>

Hi Yao, thanks for writing in! As you have said, you can’t compare in the panel other files than the one where you call `wandb.init()`, but you can compare them in the artefacts tab. I send you a video on how to do this. Please let me know if this would work for you.

---

<div class="post-metadata">

**Author:** ![geyao](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geyao](https://community.wandb.ai/u/geyao)\
**Post date:** [September 1, 2022, 1:50am UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/3 "2022-09-01T01:50:19Z")

</div>

Thanks for your help. But I can’t find the video in my email. Maybe it was blocked by the email system. Can you send it to my google email: [tulifang1995@gmail.com](mailto:tulifang1995@gmail.com)?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [September 1, 2022, 4:21pm UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/4 "2022-09-01T16:21:40Z")

</div>

Hi Yao! I have already sent the video to your google email. Please let me know if you have received it and if this would work for you.

---

<div class="post-metadata">

**Author:** ![geyao](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geyao](https://community.wandb.ai/u/geyao)\
**Post date:** [September 3, 2022, 2:15pm UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/5 "2022-09-03T14:15:02Z")

</div>

Thanks! The video is really helpful! To make it easier for people with the same problem to find the answer, I’ll briefly describe the method in the video:

1. Open Artifacts page.
2. Click files.
3. Click ‘compare’ button here:  
 ![compare_code](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/872c08e8148763b60d65ddd40545095a3dfb6931.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [September 6, 2022, 3:17pm UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/6 "2022-09-06T15:17:24Z")

</div>

Hi Yao, thanks for your suggestion! Is there anything else I can help you with?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [November 2, 2022, 2:15pm UTC](https://community.wandb.ai/t/code-comparer-can-only-show-the-difference-of-main-training-file/3020/7 "2022-11-02T14:15:53Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
