---
title: thunder.core.langctxs.set_langctx
description: Sets the current language context.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.core.langctxs.set_langctx
---
# thunder.core.langctxs.set_langctx {#thunder-core-langctxs-set-langctx}

### `thunder.core.langctxs.set_langctx(ctx, /)` {#thunder.core.langctxs.set_langctx}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/core/langctxs.py#L45-L50)

Sets the current language context.

Return type:

[`Any`](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.15)")

Parameters:

**ctx** (_LanguageContext_) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
