Skip to content

Commit

Permalink
Powershell scripts
Browse files Browse the repository at this point in the history
Powershell scripts for init and start. Also, updated sample app for K-Fold cross validation to use the model name used by the Prediction app.
  • Loading branch information
Nabeel committed Oct 25, 2018
1 parent 6db9354 commit 4ebd083
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Qlik-Py-Init.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Write-Output "Setting up the Python virtual environment..."
python -m venv $PSScriptRoot\qlik-py-env
Write-Output "Copying project files to the new directory..."
xcopy /E /I $PSScriptRoot\generated $PSScriptRoot\qlik-py-env\generated
xcopy /E /I $PSScriptRoot\core $PSScriptRoot\qlik-py-env\core
Write-Output "Activating the virtual environment..."
& $PSScriptRoot\qlik-py-env\Scripts\activate.ps1
Write-Output "Installing required packages..."
python -m pip install --upgrade setuptools pip
pip install grpcio grpcio-tools numpy scipy pandas cython
pip install pystan==2.17
pip install fbprophet
pip install -U scikit-learn
pip install hdbscan
pip install -U skater
Write-Output "Creating a new firewall rule for TCP port 50055..."
netsh advfirewall firewall add rule name=Qlik-PyTools dir=in action=allow protocol=TCP localport=50055
Write-Output "All done. Run Qlik-Py-Start.bat to start the SSE Extension Service."
3 changes: 3 additions & 0 deletions Qlik-Py-Start.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
& $PSScriptRoot\qlik-py-env\Scripts\activate.ps1
cd $PSScriptRoot\qlik-py-env\core
python __main__.py
Binary file modified docs/Sample-App-scikit-learn-K-fold-Cross-Validation.qvf
Binary file not shown.

0 comments on commit 4ebd083

Please sign in to comment.