_(“node name”).all()

Describe the problem/error/question

In version 1.X, the following construct worked in Python Node (beta): _(“”).all() . Now in version 2.0.3 (native), it produces an error. Is there no way to access a node by name in Python in the new version?

What is the error message (if any)?

name ‘_’ is not defined

Please share your workflow

Information on your n8n setup

  • n8n version: 2.0.3, ubuntu, self

hello @avdivo

The native Python node accepts only two special vars: _item and _items. Other variables are not supported

Native Python supports only _items in all-items mode and _item in per-item mode. It doesn’t support other n8n built-in methods and variables.