# Code Repositories Local Development

**URL:** <https://community.palantir.com/t/code-repositories-local-development/1015>\
**Category:** Ask the Community\
**Tags:** code-repositories\
**Created:** [August 13, 2024, 7:52pm UTC](https://community.palantir.com/t/code-repositories-local-development/1015 "2024-08-13T19:52:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Felipe\_Trindade](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/luis_felipe_trindade/32/1075_2.png) [@Luis\_Felipe\_Trindade](https://community.palantir.com/u/Luis_Felipe_Trindade)\
**Post date:** [August 13, 2024, 7:52pm UTC](https://community.palantir.com/t/code-repositories-local-development/1015/1 "2024-08-13T19:52:00Z")

</div>

Hello Community!

I’m exploring ways to enhance my development workflow with Code Repositories, and I was wondering if there’s a method to work locally in Foundry, similar to how one might develop using Snowpark. Specifically, I’d like to connect to Snowflake from my local environment and run code on demand. I can see now that there is an available feature to clone the repo to a local environment, but still I can’t stablish the Spark session.

For example, in a Snowpark environment, I can do something like this:

```auto
from snowflake.snowpark import Session, functions as F, types as T, Window

def create_snowflake_session():
    connection_parameters = {
        "account": os.getenv('ACCOUNT'),
        "user": os.getenv('USERNAME'),
        "password": os.getenv('PASSWORD'),
        "role": os.getenv('ROLE'),
        "warehouse": os.getenv('WAREHOUSE')
    }

    session = Session.builder.configs(connection_parameters).create()
    return session

session = create_snowflake_session()

table = session.read.table('DB.SCHEMA.TABLE')
table.show()

```

Is there a way to achieve something similar within the Foundry ecosystem, allowing for local development with a connection to the Foundry runners? Any guidance or best practices would be greatly appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nicornk](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/nicornk/32/192_2.png) [@nicornk](https://community.palantir.com/u/nicornk)\
**Post date:** [August 13, 2024, 8:19pm UTC](https://community.palantir.com/t/code-repositories-local-development/1015/2 "2024-08-13T20:19:23Z")

</div>

Did you checkout Foundry DevTools?

https://emdgroup.github.io/foundry-dev-tools/

We re-implemented the transforms API a while ago and made it open source.

You could clone your repository, create a Python environment and install foundry-dev-tools-transforms on top.

More is in the docs here:

https://emdgroup.github.io/foundry-dev-tools/getting\_started/transforms.html

This will execute the code on your local machine. If you want to execute it within Foundey but have the code running locally there is a basic feature available and described in the docs here:

https://palantir.com/docs/foundry/transforms-common/local-preview/

I know that the team @jayad is working on a VSCode extension that will make this workflow much smoother.

---

<div class="post-metadata">

**Author:** ![HugoRodrigues](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/hugorodrigues/32/999_2.png) [@HugoRodrigues](https://community.palantir.com/u/HugoRodrigues)\
**Post date:** [August 14, 2024, 8:17am UTC](https://community.palantir.com/t/code-repositories-local-development/1015/3 "2024-08-14T08:17:01Z")

</div>

Hi @Luis_Felipe_Trindade

Palantir already offers embedded VS code in Code Repositories.

 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/6/6feda4bd83184bf658b4d818e554d4d98a581093.png)

It is behind the feature flag. We have been experimenting with it, and are quite satisfied.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [January 23, 2025, 12:26am UTC](https://community.palantir.com/t/code-repositories-local-development/1015/4 "2025-01-23T00:26:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [July 18, 2025, 10:32pm UTC](https://community.palantir.com/t/code-repositories-local-development/1015/5 "2025-07-18T22:32:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [October 16, 2026, 7:19pm UTC](https://community.palantir.com/t/code-repositories-local-development/1015/6 "2026-10-16T19:19:49Z")

</div>


