In https://mathematica.stackexchange.com/a/155815/45020 it is explained how to run cells using a custom virtual environment. How can I quickly create a cell that is evaluated using this environment. Normally I can hit > at the beginning of a cell to create a "Python Code" cell. However, this will use the default Python environment. Is there any way to quickly create a cell that uses a custom executable that I set up using RegisterExternalEvaluator?

  • 1
    $\begingroup$ I use this $\endgroup$
    – Jason B.
    Apr 22 at 14:12
  • $\begingroup$ Thanks, I found that after posting in an answer to a similar question here mathematica.stackexchange.com/a/236298/45020. (My question should probably be considered a duplicate of that one.) However, this function does not work for me. I left a comment about it below the linked answer. I run an exact example from the documentation and run into errors. $\endgroup$
    – Kvothe
    Apr 22 at 14:16
  • $\begingroup$ It is currently working for you? Then it might be a version issue. I am using "12.1.1 for Linux x86 (64-bit) (June 19, 2020)". $\endgroup$
    – Kvothe
    Apr 22 at 14:18
  • $\begingroup$ I don't have version 12.1 to test on right now, but it works in 12.2 for mac: i.stack.imgur.com/fckeP.png $\endgroup$
    – Jason B.
    Apr 22 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.