Skip to content

Commit

Permalink
Merge pull request n8n-io#1659 from n8n-io/DOC-647-python
Browse files Browse the repository at this point in the history
add syntax to code node
  • Loading branch information
Deborah authored Oct 16, 2023
2 parents 266adb0 + a53d7f7 commit 3ac6bad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _snippets/integrations/builtin/core-nodes/code-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ The Code node supports:

If you self-host n8n, you can import and use built-in and external npm modules in the Code node. To learn how to enable external modules, refer the [Configuration](/hosting/configuration/#use-built-in-and-external-modules-in-the-code-node) guide.

### Built-in methods and variables

n8n provides built-in methods and variables for working with data and accessing n8n data. Refer to [Built-in methods and variables](/code/builtin/) for more information.

The syntax to use the built-in methods and variables is `$variableName` or `$methodName()`. Type `$` in the Code node or expressions editor to see a list of suggested methods and variables.


## Python

Expand All @@ -37,6 +43,12 @@ n8n added Python support in version 1.0. It doesn't include a Python executable.
!!! note "Slower than JavaScript"
The Code node takes longer to process Python than JavaScript. This is due to the additional compilation steps.

### Built-in methods and variables

n8n provides built-in methods and variables for working with data and accessing n8n data. Refer to [Built-in methods and variables](/code/builtin/) for more information.

The syntax to use the built-in methods and variables is `_variableName` or `_methodName()`. Type `_` in the Code node to see a list of suggested methods and variables.

## File system and HTTP requests

You can't access the file system or make HTTP requests. Use the following nodes instead:
Expand Down

0 comments on commit 3ac6bad

Please sign in to comment.