# Problem loading code

**URL:** <https://community.wandb.ai/t/problem-loading-code/2470>\
**Category:** W&B Help\
**Tags:** artifacts\
**Created:** [May 21, 2022, 5:46am UTC](https://community.wandb.ai/t/problem-loading-code/2470 "2022-05-21T05:46:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitaliykoren](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/vitaliykoren/32/824_2.png) [@vitaliykoren](https://community.wandb.ai/u/vitaliykoren)\
**Post date:** [May 21, 2022, 5:46am UTC](https://community.wandb.ai/t/problem-loading-code/2470/1 "2022-05-21T05:46:18Z")

</div>

Hi, I’m new to W&B and already liked it a lot. But found some unexpected behavior: I want to compare two .py files when receiving the error in my Dashboard panel:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/9ac14983e976292bdc26420fa959598cb2e12855.png)

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [May 23, 2022, 8:35pm UTC](https://community.wandb.ai/t/problem-loading-code/2470/2 "2022-05-23T20:35:05Z")

</div>

Hi @vitaliykoren ,

I’ll be glad to look into this for you. Can you please provide me with a link to your workspace, and a code example of how you logging your results. Lastly, can you please expand on what you meant by comparing `two .py` files (are you using two python scripts to log to the same project?)

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![vitaliykoren](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/vitaliykoren/32/824_2.png) [@vitaliykoren](https://community.wandb.ai/u/vitaliykoren)\
**Post date:** [May 25, 2022, 3:15pm UTC](https://community.wandb.ai/t/problem-loading-code/2470/3 "2022-05-25T15:15:51Z")

</div>

Thanks for the reply @mohammadbakir )

- About the link to the workspace - do you mean the link for the project?
- How I log files:  
`wandb.run.log_code(root=config_root, include_fn=lambda file_path: file_path.endswith(self.config_path))`
- Explanation of the code snippet + answer to your last question: To set up run I use the config file (but instead of having some `.yaml` or `.json` as the common configuration file extensions, I use `.py` files with defined entities I gonna use for the run), so the `config_root` variable is the path of the folder containing this config file, while `self.config_path` is the name of it. So, I would like to have the ability to compare such files.

Vitaliy

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 1, 2022, 12:49am UTC](https://community.wandb.ai/t/problem-loading-code/2470/4 "2022-06-01T00:49:07Z")

</div>

Hi @vitaliykoren ,

Yes please, I would need a reference to your workspace to look at the specific compare panel that isn’t loading. We did have a similar issue with a previous version of the client. Please update to the latest version of wandb if you haven’t already done so. Once I receive the workspace link, I will investigate and provide an answer this week.

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![vitaliykoren](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/vitaliykoren/32/824_2.png) [@vitaliykoren](https://community.wandb.ai/u/vitaliykoren)\
**Post date:** [June 1, 2022, 9:29am UTC](https://community.wandb.ai/t/problem-loading-code/2470/5 "2022-06-01T09:29:37Z")

</div>

> [@mohammadbakir](#):
>
> I would need a reference to your workspace to look

Oh, got it. Sorry, I wouldn’t like to make my project public, and wonder will you have access to it if it’s private?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 1, 2022, 7:41pm UTC](https://community.wandb.ai/t/problem-loading-code/2470/6 "2022-06-01T19:41:45Z")

</div>

Hi @vitaliykoren ,

Yes I can access your private workspace on the cloud.

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 6, 2022, 6:52pm UTC](https://community.wandb.ai/t/problem-loading-code/2470/7 "2022-06-06T18:52:12Z")

</div>

Hi @vitaliykoren ,

Since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

Regards,

Mohammad

---

<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 5, 2022, 6:53pm UTC](https://community.wandb.ai/t/problem-loading-code/2470/8 "2022-08-05T18:53:04Z")

</div>

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