-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorials: replace cell magic with shell command #756
Conversation
Second commit is something I missed in #714 |
Bleh, this fixes Jupyter but breaks nbsphinx. See spatialaudio/nbsphinx#670. |
I knew this seemed familiar. I actually broke this ( |
This fixes some of the issues. I'm still seeing unexplainable errors in https://github.com/microsoft/torchgeo/runs/8172778528?check_suite_focus=true. Basically, |
This looks promising! github/roadmap#505 |
It seems that you have that line backwards |
This reverts commit 229ab28.
* Tutorials: replace cell magic with shell command * Fix NDVI calls * Ignore errors in nbmake * Ignore warning for now * Tutorials: trainers uses radiant-mlhub dataset * Revert "Tutorials: trainers uses radiant-mlhub dataset" This reverts commit 229ab28. * Reverse CUDA conditional
* Tutorials: replace cell magic with shell command * Fix NDVI calls * Ignore errors in nbmake * Ignore warning for now * Tutorials: trainers uses radiant-mlhub dataset * Revert "Tutorials: trainers uses radiant-mlhub dataset" This reverts commit 229ab28. * Reverse CUDA conditional
I'm hoping this is what's causing https://github.com/microsoft/torchgeo/runs/8172122269?check_suite_focus=true to fail. Also see treebeardtech/nbmake#80.
When I run the previous code in Google Colab, I see:
From my understanding, both
%
and!
will let you run shell commands, but%
is a cell magic command for which there are only a finite number of mappings (pip and apt are allowed, but not nvidia-smi). The other difference is that!
runs in a subprocess, while%
runs in the current process. This is required for something likepip install
, but not for something likenvidia-smi
.