-
Notifications
You must be signed in to change notification settings - Fork 70
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
Command line execution of a jupyter notebook fails in default Anaconda 4.1. #34
Comments
From @bollwyvl on July 5, 2016 15:54 In the near term, the kernel_name (in the current environment) can be specified at the CLI:
Ideally, we'd be able to overload the kernel manager in nbconvert as we have done in the notebook. However, it looks like there is no way to override the kernel discovery of the In the case of root, we should likely not append the name... or better still, figure out a less-invasive way to do it. |
Ack, this is pretty bad. We need to figure out a much better solution to this problem. |
I use Here are the steps to reproduce. Define the following name: conda-test
dependencies:
- conda-forge::nb_conda_kernels=2.1.0
- ipykernel=4.5.2
- ipywidgets=6.0.0
- nbconvert=5.1.1
- notebook=5.0.0 Install and activate the
Create a notebook with a single cell as follows, and use the kernel chooser menu to choose import sys
sys.base_prefix Running from an interactive Jupyter browser, the cell outputs:
That is the correct version of python. With the environment activated, run:
Producing the following output (which is this issue):
However, if I try the workaround and run:
The cell outputs:
Ahh! This is another one of my environments, not the environment which is activated. I don't believe this used to be an issue... IIRC, when a conda environment was activated, |
Mmm... I tried you command and I am getting the correct prefix, the conda-test one. |
Yes certain. However, I was using the @damianavila do you know which configuration files determine kernels for |
nbviewer does not run any kernel, AFAIK... and the kernel name gets saved in the notebook document itself...
Which configuration files do you want me to post? There are several ones... for kernels installed manually by yourself, you should specifically look is some directories to check the kernelspec, for instance:
|
@damianavila the cat ~/anaconda3/envs/conda-test/share/jupyter/kernels/python3/kernel.json {
"argv": [
"/home/dhimmel/anaconda3/envs/conda-test/bin/python",
"-m",
"ipykernel",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
} Installed kenelsHere's the Jupyter kernel documentation, which was helpful for the following sections. I ran
I must have installed the {
"language": "python",
"argv": [
"/home/dhimmel/anaconda3/envs/integrate/bin/python",
"-m",
"ipykernel",
"-f",
"{connection_file}"
],
"display_name": "Python 3"
} I edited Now when I rerun
So the question is why is @damianavila getting the correct prefix while I am not. Perhaps I am using newer versions of Jupyter / conda / anaconda (since I don't think this bug used to exist)? @ijstokes any advice? My goal is to use |
Suggestion: remove any kernelspec from If I run
Which is the python executable in you conda-test environment. |
@damianavila yes! I ran Without the
With
|
@dhimmel nice to see it is working for you 😉 |
nb_conda_kernels was causing execute.py to fail. See anaconda/nb_conda_kernels#34
…latest/api/kernelspec.html; --ExecutePreprocessor.kernel_name to python # ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, anaconda/nb_conda_kernels#34
I'm closing this as a duplicate of #77. I suppose I could close that one instead, I offered some comments in that issue that are at least relevant. I invite comments on the wisdom of my idea. |
…latest/api/kernelspec.html; --ExecutePreprocessor.kernel_name to python # ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, anaconda/nb_conda_kernels#34
f2d3ce0 Merge branch 'hotfix/cython-filename' 62714a3 debugged updating build h265db76_0 01670ac trying python >= 3.7.3 for nightly 5c7f145 update python if 3.7.4 h265db76_0 5333e5c python version in env files 7f05632 Revert "lower version of pytest-xdist for nightly" bedde74 nightly python = 3.7.3 36d0772 lower version of pytest-xdist for nightly fcb9008 Merge branch 'hotfix/video-to-list' da2f0be link to the list of moving pictures instead of one dfc929f Merge commit '127e51700c5c066292fbb344a0882e4c30c62eb4' into feature/update-test 127e517 Merge branch 'release/19080401' bbfd18a Merge branch 'feature/update-env' into develop 2ccf41a nightly>=2019.07 py37 Win64 9e16d6b sorted packages c2d1110 sorted package order efb3cda updated link to pkg list 9340ad7 added 2019.07 1b138b6 added anaconda dates 82f2471 Merge branch 'feature/ipynb-code-lines' into develop 7e5a054 -std=c++11 272dc97 line breaks in c++ code (cont) e113f99 line breaks in c++ code (cont) 1dbfe99 line breaks in c++ code (cont) 21b828e line breaks in c++ code (cont) c418f84 -std=c++11 8537452 line breaks in c++ code (cont) 626dea9 line breaks in c++ code (cont) 6a0a326 line breaks in c++ code (cont) 885b2fb line breaks in c++ code (start) 40001fa indent if block 03514ce Merge tag '19072901' into develop ffee3fd Merge branch 'release/19072901' cc722a4 POSIX only for now abcb04c Merge branch 'feature/merge-test-ipynb-pycpp' into develop f40a916 windows : trying to install miniconda under $HOME 662fe4c check if miniconda path exists 3b8da32 indicate windows cache found condition 80884f3 env 3.7.3 : added cython & requests 7efbe05 added __init__.py 1b0b618 License to BSD 3-Clause 336d919 added cython & requests 604fdb7 added cython & requests fa262d5 added cython & requests 58a6637 added requests 7b2ad12 added cython and requests 33ee74e copied files from test ipynb pycpp 6ec68ab https://docs.anaconda.com/anaconda/packages/old-pkg-lists/5.0.1/py3.6_win-64/ 6322c68 Anaconda 5.0.1 statsmodels=0.8.0 4b78f40 Merge branch 'feature/separated-scripts' into develop 0e2c0dc pytest-dist<1.27.0 b60282b indicate CONDA_PYTHON f2059e8 whitespace e31aaf0 indicate CONDA_PYTHON 96ef213 whitespace c8619b2 Merge commit 'f09c46a729d083f7ba943abdc1d58763552f1d9f' into feature/faster-build 4c2d6bb Added separated scripts 27fa5af added py373 for anaconda3 2019.03 f09c46a separated before_install and install sh files f1f5ce3 py373 : pytest-xdist >= 1.26.1 (py37) 313696b added py373 for anaconda 2019.03 c71223d Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/update-utils 2405e5a Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/utils/subtree eef5b7c Merge tag 'test_ipynb/19060902' into develop 6ca6f7a Add 'utils/nbutils/' from commit '5c832a16df03447fc8a3306babb01b24738cde5d' f867332 Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop 39dda1f Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop 846b310 py nightly : pytest-xdist>=1.28.0 9b35253 py 371 : pytest-xdist=1.26.1 13ad42b py 3.7 : pytest.xdist=1.26.1 ed781f5 added pluggy>=0.11 for pytest-dist cad94c9 updated nightly : https://docs.anaconda.com/anaconda/packages/py3.7_win-64/ 96122ba Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist b0b0447 Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist ba7b6bc py36 : pytest-xdist=1.24.1 5f1b522 py36 : pytest-xdist=1.17.1 66fc007 pytest-xdist channels to default 0bcbf81 test envs : added condaforge::pytest-xdist a2b51f9 Merge branch 'feature/test_ipynb' into develop 0117eb0 test_ipynb_file() : fstring -> %s for back. comp. dfff8e4 env for 3.5 source 2f751c4 added env for python 3.5 982d58e Merge commit '632fb609bfb8f4ec6d70b136a9cb42d7f5fffac8' into feature/subtree/test 7642bf2 added yml for Anaconda 2018.12 b5d526c Merge branch 'feature/subtree' into develop f9453cd single test timeout -> 3600 sec 522ae41 Merge commit 'c96eea3e79534c07aa9abfc43ec8403af06344db' into feature/subtree cc0bc93 Merge commit 'dc398d1355e13ed7df57710a054e4fd463d19c57' into feature/subtree c6ef284 Add 'tests/' from commit '2efb9cad60ee5a26c4bed628f1b6a0be262eb040' 7bad11f SymbolLister : renamed has_symbol() -> calls_sympy_symbol() to clarify the meaning afe8669 TestRemoveOutput.test_delete_output_file() : removed unnecessary enumerate() 5532ef2 TestRemoveOutput : Create a separate test file 9136b81 revised MyLineConverterTesterBase.input_file_name 1b81e2e Revised TestSymbolLister.input_file_name to an existing file d9f1840 Revised input file path to TestRemoveOutput.input_file_name 719f03d Added test_use_default_filename_if_missing() 7aa4ed0 set to Anaconda 5.0.1 python 3.6 1cc0d65 added env 3.6 6a88887 revised env nightly aab14e4 revised env 3.5 2af842c coding style 471ed2e added tests for individual chapters dfe1588 implemented test_cell_processor() 3c21111 check_process_line() : try exec() converted string 4ddfd34 added more test cases 3c4d0d9 test cases for N/m 3a4c651 added class MyLineConverterTesterBase(unittest.TestCase) as superclass for TestSymbolConverter 01a1cfa added basic test cases for line converters b1fc55d added test cases for multiple symbols 2e9550f added test cases for Symbol() 185d1d6 find_symbol_name_location() : locate symbol name location : start:end be6c653 added test_unit_underline_wrap_bracket() 06a9be3 started class TestSymbolConverter a6bccdc renamed SymbolConverter -> SymbolLister 4d3c2ca added test/test_remove_output.py 7d2a0f7 added ipynb file with output : to test output removal program b0ddd02 CellProcessorBase : virtual class // moved has_symbol() to SymbolConverter class // //// CellListProcessor : may accept cell_processor as an argument // //// FileProcessor : may accept cell processor as the argument. Would pass to instantiate the cell list processor be6136e moved symbol_lines_in_file() function to symbol_converter.py a4689b9 renamed CellProcessor class to CellProcessorBase : to make a virtual class later 10ae99a separated ipynb_remove_output.py and nb_file_util.py 8f2651c results in dictionaries indicating levels //// FileProcessor // process_nb_file() : added argument b_write_file // process_nb_node() : return result from CellListProcessor.process_cells() // //// CellListProcessor // added process_cells() : make an instance of the CellProcessor class & call for each cell // //// CellProcessor // added has_field() and implemented has_output() && has_source() using it // added has_symbol() : return dictionary of line numbers and source code line // process_cell() : just calls has_symbol() (maybe better as a virtual method) //// 0e5f4d8 FileProcessor : __init__() : at first, set nb_node member as None // added process_nb_file() : read file, call process_nb_node, and write file f928049 started FileProcessor : file interface : read, write, run ipynb 31fe95a added test_cells_with_symbol() : find source lines with symbol in a given file name 5a1d09d started test_replace_symbol() : test cases for file level replace results b847d7d added test_has_symbol() : compare the results from cells b31aff9 added test_read_notebook() 5551d01 added self.input_file_name in setUp() a5ee9f0 removed with block 389d265 test sample notebook 82a979d added sample.ipynb 05bbbc4 started test_nbutils.py 3f8a4fe added check_kernel_spec() ; https://jupyter-client.readthedocs.io/en/latest/api/kernelspec.html; --ExecutePreprocessor.kernel_name to python # ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, anaconda/nb_conda_kernels#34 2c4720f removed python version 3.6 to save test time added additional reference : Anaconda Inc., Using conda with Travis CI, Conda documentation, https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html 1537561 relocated files for tests : # https://lord.io/blog/2014/travis-multiple-subdirs/ removed utility recursive_rename.py git-subtree-dir: tests git-subtree-split: f2d3ce0
f2d3ce0 Merge branch 'hotfix/cython-filename' 62714a3 debugged updating build h265db76_0 01670ac trying python >= 3.7.3 for nightly 5c7f145 update python if 3.7.4 h265db76_0 5333e5c python version in env files 7f05632 Revert "lower version of pytest-xdist for nightly" bedde74 nightly python = 3.7.3 36d0772 lower version of pytest-xdist for nightly fcb9008 Merge branch 'hotfix/video-to-list' da2f0be link to the list of moving pictures instead of one dfc929f Merge commit '127e51700c5c066292fbb344a0882e4c30c62eb4' into feature/update-test 127e517 Merge branch 'release/19080401' bbfd18a Merge branch 'feature/update-env' into develop 2ccf41a nightly>=2019.07 py37 Win64 9e16d6b sorted packages c2d1110 sorted package order efb3cda updated link to pkg list 9340ad7 added 2019.07 1b138b6 added anaconda dates 82f2471 Merge branch 'feature/ipynb-code-lines' into develop 7e5a054 -std=c++11 272dc97 line breaks in c++ code (cont) e113f99 line breaks in c++ code (cont) 1dbfe99 line breaks in c++ code (cont) 21b828e line breaks in c++ code (cont) c418f84 -std=c++11 8537452 line breaks in c++ code (cont) 626dea9 line breaks in c++ code (cont) 6a0a326 line breaks in c++ code (cont) 885b2fb line breaks in c++ code (start) 40001fa indent if block 03514ce Merge tag '19072901' into develop ffee3fd Merge branch 'release/19072901' cc722a4 POSIX only for now abcb04c Merge branch 'feature/merge-test-ipynb-pycpp' into develop f40a916 windows : trying to install miniconda under $HOME 662fe4c check if miniconda path exists 3b8da32 indicate windows cache found condition 80884f3 env 3.7.3 : added cython & requests 7efbe05 added __init__.py 1b0b618 License to BSD 3-Clause 336d919 added cython & requests 604fdb7 added cython & requests fa262d5 added cython & requests 58a6637 added requests 7b2ad12 added cython and requests 33ee74e copied files from test ipynb pycpp 6ec68ab https://docs.anaconda.com/anaconda/packages/old-pkg-lists/5.0.1/py3.6_win-64/ 6322c68 Anaconda 5.0.1 statsmodels=0.8.0 4b78f40 Merge branch 'feature/separated-scripts' into develop 0e2c0dc pytest-dist<1.27.0 b60282b indicate CONDA_PYTHON f2059e8 whitespace e31aaf0 indicate CONDA_PYTHON 96ef213 whitespace c8619b2 Merge commit 'f09c46a729d083f7ba943abdc1d58763552f1d9f' into feature/faster-build 4c2d6bb Added separated scripts 27fa5af added py373 for anaconda3 2019.03 f09c46a separated before_install and install sh files f1f5ce3 py373 : pytest-xdist >= 1.26.1 (py37) 313696b added py373 for anaconda 2019.03 c71223d Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/update-utils 2405e5a Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/utils/subtree eef5b7c Merge tag 'test_ipynb/19060902' into develop 11c1a56 Merge branch 'release/test_ipynb/19060902' 6d84a87 os.path.basename() e587025 os.path.split() -> os.path.dirname() 6ca6f7a Add 'utils/nbutils/' from commit '5c832a16df03447fc8a3306babb01b24738cde5d' f867332 Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop 39dda1f Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop eec42fc Merge tag '19051201' into develop 3f87332 Merge branch 'release/19051201' ddd21ce _exec_notebook_nix() : white space 0289d48 py nightly source 3dc2a21 Merge branch 'feature/update' into develop c06f1de updated nightly : https://docs.anaconda.com/anaconda/packages/py3.7_win-64/ 2a15ad2 py 3.7.1 : pytest-xdist=1.26.1 82cea90 py 3.7 : pytest.xdist=1.26.1 846b310 py nightly : pytest-xdist>=1.28.0 9b35253 py 371 : pytest-xdist=1.26.1 13ad42b py 3.7 : pytest.xdist=1.26.1 ed781f5 added pluggy>=0.11 for pytest-dist cad94c9 updated nightly : https://docs.anaconda.com/anaconda/packages/py3.7_win-64/ 96122ba Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist b0b0447 Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist e262523 Merge tag '19041401' into develop 54ecf2f Merge branch 'release/19041401' 6223450 revised nightly 2850644 Merge branch 'feature/pytest-xdist' into develop acd7952 Merge branch 'feature/add-env-py35' into develop f5616ba test envs : added pytest-xdist 2afcdb3 added env for python 3.5 c73b832 test_ipynb_file() : fstring -> %s for back. comp. ba7b6bc py36 : pytest-xdist=1.24.1 5f1b522 py36 : pytest-xdist=1.17.1 66fc007 pytest-xdist channels to default 0bcbf81 test envs : added condaforge::pytest-xdist a2b51f9 Merge branch 'feature/test_ipynb' into develop 0117eb0 test_ipynb_file() : fstring -> %s for back. comp. dfff8e4 env for 3.5 source 2f751c4 added env for python 3.5 982d58e Merge commit '632fb609bfb8f4ec6d70b136a9cb42d7f5fffac8' into feature/subtree/test 2e816a2 Merge tag '19041001' into develop 7642bf2 added yml for Anaconda 2018.12 b5d526c Merge branch 'feature/subtree' into develop f9453cd single test timeout -> 3600 sec 522ae41 Merge commit 'c96eea3e79534c07aa9abfc43ec8403af06344db' into feature/subtree cc0bc93 Merge commit 'dc398d1355e13ed7df57710a054e4fd463d19c57' into feature/subtree c6ef284 Add 'tests/' from commit '2efb9cad60ee5a26c4bed628f1b6a0be262eb040' 7bad11f SymbolLister : renamed has_symbol() -> calls_sympy_symbol() to clarify the meaning afe8669 TestRemoveOutput.test_delete_output_file() : removed unnecessary enumerate() 5532ef2 TestRemoveOutput : Create a separate test file 9136b81 revised MyLineConverterTesterBase.input_file_name 1b81e2e Revised TestSymbolLister.input_file_name to an existing file d9f1840 Revised input file path to TestRemoveOutput.input_file_name 719f03d Added test_use_default_filename_if_missing() 7aa4ed0 set to Anaconda 5.0.1 python 3.6 1cc0d65 added env 3.6 6a88887 revised env nightly aab14e4 revised env 3.5 2af842c coding style 471ed2e added tests for individual chapters dfe1588 implemented test_cell_processor() 3c21111 check_process_line() : try exec() converted string 4ddfd34 added more test cases 3c4d0d9 test cases for N/m 3a4c651 added class MyLineConverterTesterBase(unittest.TestCase) as superclass for TestSymbolConverter 01a1cfa added basic test cases for line converters b1fc55d added test cases for multiple symbols 2e9550f added test cases for Symbol() 185d1d6 find_symbol_name_location() : locate symbol name location : start:end be6c653 added test_unit_underline_wrap_bracket() 06a9be3 started class TestSymbolConverter a6bccdc renamed SymbolConverter -> SymbolLister 4d3c2ca added test/test_remove_output.py 7d2a0f7 added ipynb file with output : to test output removal program b0ddd02 CellProcessorBase : virtual class // moved has_symbol() to SymbolConverter class // //// CellListProcessor : may accept cell_processor as an argument // //// FileProcessor : may accept cell processor as the argument. Would pass to instantiate the cell list processor be6136e moved symbol_lines_in_file() function to symbol_converter.py a4689b9 renamed CellProcessor class to CellProcessorBase : to make a virtual class later 10ae99a separated ipynb_remove_output.py and nb_file_util.py 8f2651c results in dictionaries indicating levels //// FileProcessor // process_nb_file() : added argument b_write_file // process_nb_node() : return result from CellListProcessor.process_cells() // //// CellListProcessor // added process_cells() : make an instance of the CellProcessor class & call for each cell // //// CellProcessor // added has_field() and implemented has_output() && has_source() using it // added has_symbol() : return dictionary of line numbers and source code line // process_cell() : just calls has_symbol() (maybe better as a virtual method) //// 0e5f4d8 FileProcessor : __init__() : at first, set nb_node member as None // added process_nb_file() : read file, call process_nb_node, and write file f928049 started FileProcessor : file interface : read, write, run ipynb 31fe95a added test_cells_with_symbol() : find source lines with symbol in a given file name 5a1d09d started test_replace_symbol() : test cases for file level replace results b847d7d added test_has_symbol() : compare the results from cells b31aff9 added test_read_notebook() 5551d01 added self.input_file_name in setUp() a5ee9f0 removed with block 389d265 test sample notebook 82a979d added sample.ipynb 05bbbc4 started test_nbutils.py 3f8a4fe added check_kernel_spec() ; https://jupyter-client.readthedocs.io/en/latest/api/kernelspec.html; --ExecutePreprocessor.kernel_name to python # ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, anaconda/nb_conda_kernels#34 2c4720f removed python version 3.6 to save test time added additional reference : Anaconda Inc., Using conda with Travis CI, Conda documentation, https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html 1537561 relocated files for tests : # https://lord.io/blog/2014/travis-multiple-subdirs/ removed utility recursive_rename.py git-subtree-dir: tests git-subtree-split: f2d3ce0
096fa0b Merge branch 'hotfix/15-min' ff074c4 15min GDB video -> CppCon list f2d3ce0 Merge branch 'hotfix/cython-filename' 62714a3 debugged updating build h265db76_0 01670ac trying python >= 3.7.3 for nightly 5c7f145 update python if 3.7.4 h265db76_0 5333e5c python version in env files 7f05632 Revert "lower version of pytest-xdist for nightly" bedde74 nightly python = 3.7.3 36d0772 lower version of pytest-xdist for nightly fcb9008 Merge branch 'hotfix/video-to-list' da2f0be link to the list of moving pictures instead of one dfc929f Merge commit '127e51700c5c066292fbb344a0882e4c30c62eb4' into feature/update-test 127e517 Merge branch 'release/19080401' bbfd18a Merge branch 'feature/update-env' into develop 2ccf41a nightly>=2019.07 py37 Win64 9e16d6b sorted packages c2d1110 sorted package order efb3cda updated link to pkg list 9340ad7 added 2019.07 1b138b6 added anaconda dates 82f2471 Merge branch 'feature/ipynb-code-lines' into develop 7e5a054 -std=c++11 272dc97 line breaks in c++ code (cont) e113f99 line breaks in c++ code (cont) 1dbfe99 line breaks in c++ code (cont) 21b828e line breaks in c++ code (cont) c418f84 -std=c++11 8537452 line breaks in c++ code (cont) 626dea9 line breaks in c++ code (cont) 6a0a326 line breaks in c++ code (cont) 885b2fb line breaks in c++ code (start) 40001fa indent if block 03514ce Merge tag '19072901' into develop ffee3fd Merge branch 'release/19072901' cc722a4 POSIX only for now abcb04c Merge branch 'feature/merge-test-ipynb-pycpp' into develop f40a916 windows : trying to install miniconda under $HOME 662fe4c check if miniconda path exists 3b8da32 indicate windows cache found condition 80884f3 env 3.7.3 : added cython & requests 7efbe05 added __init__.py 1b0b618 License to BSD 3-Clause 336d919 added cython & requests 604fdb7 added cython & requests fa262d5 added cython & requests 58a6637 added requests 7b2ad12 added cython and requests 33ee74e copied files from test ipynb pycpp 6ec68ab https://docs.anaconda.com/anaconda/packages/old-pkg-lists/5.0.1/py3.6_win-64/ 6322c68 Anaconda 5.0.1 statsmodels=0.8.0 4b78f40 Merge branch 'feature/separated-scripts' into develop 0e2c0dc pytest-dist<1.27.0 b60282b indicate CONDA_PYTHON f2059e8 whitespace e31aaf0 indicate CONDA_PYTHON 96ef213 whitespace c8619b2 Merge commit 'f09c46a729d083f7ba943abdc1d58763552f1d9f' into feature/faster-build 4c2d6bb Added separated scripts 27fa5af added py373 for anaconda3 2019.03 f09c46a separated before_install and install sh files f1f5ce3 py373 : pytest-xdist >= 1.26.1 (py37) 313696b added py373 for anaconda 2019.03 c71223d Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/update-utils 2405e5a Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/utils/subtree eef5b7c Merge tag 'test_ipynb/19060902' into develop 6ca6f7a Add 'utils/nbutils/' from commit '5c832a16df03447fc8a3306babb01b24738cde5d' f867332 Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop 39dda1f Merge commit '3f87332cad4b9dc935530dc9c24329fa1f60d5a4' into develop 846b310 py nightly : pytest-xdist>=1.28.0 9b35253 py 371 : pytest-xdist=1.26.1 13ad42b py 3.7 : pytest.xdist=1.26.1 ed781f5 added pluggy>=0.11 for pytest-dist cad94c9 updated nightly : https://docs.anaconda.com/anaconda/packages/py3.7_win-64/ 96122ba Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist b0b0447 Merge commit '54ecf2f6b4101aa9afd0e7e86e179c3c4cd531c7' into feature/pytest-xdist ba7b6bc py36 : pytest-xdist=1.24.1 5f1b522 py36 : pytest-xdist=1.17.1 66fc007 pytest-xdist channels to default 0bcbf81 test envs : added condaforge::pytest-xdist a2b51f9 Merge branch 'feature/test_ipynb' into develop 0117eb0 test_ipynb_file() : fstring -> %s for back. comp. dfff8e4 env for 3.5 source 2f751c4 added env for python 3.5 982d58e Merge commit '632fb609bfb8f4ec6d70b136a9cb42d7f5fffac8' into feature/subtree/test 7642bf2 added yml for Anaconda 2018.12 b5d526c Merge branch 'feature/subtree' into develop f9453cd single test timeout -> 3600 sec 522ae41 Merge commit 'c96eea3e79534c07aa9abfc43ec8403af06344db' into feature/subtree cc0bc93 Merge commit 'dc398d1355e13ed7df57710a054e4fd463d19c57' into feature/subtree c6ef284 Add 'tests/' from commit '2efb9cad60ee5a26c4bed628f1b6a0be262eb040' 7bad11f SymbolLister : renamed has_symbol() -> calls_sympy_symbol() to clarify the meaning afe8669 TestRemoveOutput.test_delete_output_file() : removed unnecessary enumerate() 5532ef2 TestRemoveOutput : Create a separate test file 9136b81 revised MyLineConverterTesterBase.input_file_name 1b81e2e Revised TestSymbolLister.input_file_name to an existing file d9f1840 Revised input file path to TestRemoveOutput.input_file_name 719f03d Added test_use_default_filename_if_missing() 7aa4ed0 set to Anaconda 5.0.1 python 3.6 1cc0d65 added env 3.6 6a88887 revised env nightly aab14e4 revised env 3.5 2af842c coding style 471ed2e added tests for individual chapters dfe1588 implemented test_cell_processor() 3c21111 check_process_line() : try exec() converted string 4ddfd34 added more test cases 3c4d0d9 test cases for N/m 3a4c651 added class MyLineConverterTesterBase(unittest.TestCase) as superclass for TestSymbolConverter 01a1cfa added basic test cases for line converters b1fc55d added test cases for multiple symbols 2e9550f added test cases for Symbol() 185d1d6 find_symbol_name_location() : locate symbol name location : start:end be6c653 added test_unit_underline_wrap_bracket() 06a9be3 started class TestSymbolConverter a6bccdc renamed SymbolConverter -> SymbolLister 4d3c2ca added test/test_remove_output.py 7d2a0f7 added ipynb file with output : to test output removal program b0ddd02 CellProcessorBase : virtual class // moved has_symbol() to SymbolConverter class // //// CellListProcessor : may accept cell_processor as an argument // //// FileProcessor : may accept cell processor as the argument. Would pass to instantiate the cell list processor be6136e moved symbol_lines_in_file() function to symbol_converter.py a4689b9 renamed CellProcessor class to CellProcessorBase : to make a virtual class later 10ae99a separated ipynb_remove_output.py and nb_file_util.py 8f2651c results in dictionaries indicating levels //// FileProcessor // process_nb_file() : added argument b_write_file // process_nb_node() : return result from CellListProcessor.process_cells() // //// CellListProcessor // added process_cells() : make an instance of the CellProcessor class & call for each cell // //// CellProcessor // added has_field() and implemented has_output() && has_source() using it // added has_symbol() : return dictionary of line numbers and source code line // process_cell() : just calls has_symbol() (maybe better as a virtual method) //// 0e5f4d8 FileProcessor : __init__() : at first, set nb_node member as None // added process_nb_file() : read file, call process_nb_node, and write file f928049 started FileProcessor : file interface : read, write, run ipynb 31fe95a added test_cells_with_symbol() : find source lines with symbol in a given file name 5a1d09d started test_replace_symbol() : test cases for file level replace results b847d7d added test_has_symbol() : compare the results from cells b31aff9 added test_read_notebook() 5551d01 added self.input_file_name in setUp() a5ee9f0 removed with block 389d265 test sample notebook 82a979d added sample.ipynb 05bbbc4 started test_nbutils.py 3f8a4fe added check_kernel_spec() ; https://jupyter-client.readthedocs.io/en/latest/api/kernelspec.html; --ExecutePreprocessor.kernel_name to python # ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, anaconda/nb_conda_kernels#34 2c4720f removed python version 3.6 to save test time added additional reference : Anaconda Inc., Using conda with Travis CI, Conda documentation, https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html 1537561 relocated files for tests : # https://lord.io/blog/2014/travis-multiple-subdirs/ removed utility recursive_rename.py git-subtree-dir: tests git-subtree-split: 096fa0b
From @rtrhd on July 2, 2016 15:30
Command line execution of a jupyter notebook with
jupyter nbconvert --to notebook --execute
fails after upgrading to Anaconda 4.1.On saving a jupyter ipython notebook the kernel name is changed from the conventional
python2
orpython3
to the conda specific formPython [Root]
but this is not recognised bynbconvert
.This form is also not recognised when the notebook is opened in the browser in an Anaconda 4.0 installation causing problems sharing notebooks.
The behaviour was observed on OSX/3.5 and Linux/2.7.
Explicit removal of the package
nb_conda_kernels
resolves the problem, but this package is included by default in Anaconda 4.1.Copied from original issue: ContinuumIO/anaconda-issues#877
The text was updated successfully, but these errors were encountered: