Is there an environment variable for IP address of instance?


I am trying to write a Stackscript to deploy Jupyter Lab. At the end, I need to start service by providing an IP address, but I can't find any env variable that stores IP address for that certain instance

os.system('jupyter lab --ip --port 8888 --no-browser')

That should be automated such as LINODE_IP. But I can't find anything related to that in guides. Thanks.

1 Reply

There isn't… This guide gives several ways to query it from your script:

-- sw


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct