Hi I have a Jupyerlab notebook called:
SQL Queries.ipynb which runs off the environment QueryEnv in Anaconda.
The file lives in the directory C:\Users\Latitude User\OneDrive\Projects\
Is there a way in which to run a notebook file as a .bat or do i have to convert the notebook to a .py file?
Previously i have used the following .bat scripts for a .py file in the ModelEnv of Anaconda:
@ECHO OFF
TITLE Execute python script on anaconda environment
ECHO Please Wait...
:: Section 1: Activate the environment.
ECHO ============================
ECHO Conda Activate
ECHO ============================
@CALL "C:\Users\Latitude User\anaconda3\Scripts\activate.bat" ModelEnv
:: Section 2: Execute python script.
ECHO ============================
ECHO Model.py
ECHO ============================
python "C:\Users\Latitude User\OneDrive\Projects\Model.py"
ECHO ============================
ECHO End
ECHO ============================
PAUSE
Can I do this for a notebook file? Thanks in advance!