Skip to content

Commit

Permalink
make pylint happier
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo authored Jan 17, 2024
1 parent 257145b commit c90e77e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/hello_world.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
},
"outputs": [],
"source": [
"import sys, os\n",
"import sys\n",
"import os\n",
"if 'google.colab' in sys.modules:\n",
" !pip --quiet install open-atmos-jupyter-utils\n",
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
" pip_install_on_colab('PyPartMC')\n",
"elif '.arm.gov' in os.environ['JUPYTER_IMAGE']:\n",
" !pip --quiet install PyPartMC\n",
" _pip_paths = !pip show PyPartMC | fgrep Location | cut -f2 -d' '\n",
" if _pip_paths[0] not in sys.path: sys.path.append(_pip_paths[0])"
" _pypartmc_path = !pip show PyPartMC | fgrep Location | cut -f2 -d' '\n",
" sys.path.extend(_pypartmc_path if _pypartmc_path[0] not in sys.path else [])"
]
},
{
Expand Down

0 comments on commit c90e77e

Please sign in to comment.