Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion v3-examples/training-examples/local-training-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"source": [
"# NOTE: Local mode requires Docker to be installed and running.\n",
"import os\n",
"os.environ['PATH'] = '/usr/local/bin:/Applications/Docker.app/Contents/Resources/bin:' + os.environ['PATH']"
"import sys\n",
"if sys.platform == 'darwin':\n",
" os.environ['PATH'] = '/usr/local/bin:/Applications/Docker.app/Contents/Resources/bin:/Applications/Docker.app/Contents/Resources/cli-plugins:' + os.environ['PATH']"
]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a check for MacOS user before this line?
if sys.platform == 'darwin':

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

},
{
Expand Down