1

I want to change environment to py34 and run ipython notebook using a script.

Entering in command mode line by line 1) activate py34 2) jupyter notebook does the trick. However, since I need to do this so frequently I want to make a script that does the same (on Windows 7).

A script containing ONLY jupyter notebook works (launches browser with http://localhost:8888/tree open and python kernel), however script containing both lines:

activate py34
jupyter notebook

does not. It simply closes the command window. Could you, please, tell how to modify the script to make it running in py34 environment as in line-by-line command mode?

3
  • 5
    I could bet that the activate program is an activate.bat Batch file! Just precede it with call command: call activate py34 Commented Aug 7, 2016 at 13:38
  • Thanks! This actually solves the question. Commented Aug 7, 2016 at 13:53
  • 1
    Possible duplicate of How to run multiple .BAT files within a .BAT file Commented Aug 7, 2016 at 14:01

1 Answer 1

1

Following Aacini's comment, this is the working bat-file:

call activate py34
jupyter notebook
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.