Skip to content
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

Fix documentation for Python on Windows #244

Merged
merged 2 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions chapter_5/installation/python-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You will now have to create a file called ``hmackey`` that contains the value of
Run knowage-python webservice
-----------------------------

Once you have installed all the requirements, you need to get the python-webservice running. The Python service for KNOWAGE is a Flask application: please take a look at `the official documentation <https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment>`. In order to do so, you should rely on a WSGI Server.
Once you have installed all the requirements, you need to get the python-webservice running. The Python service for KNOWAGE is a Flask application: please take a look at `the official documentation <https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment>`_. In order to do so, you should rely on a WSGI Server.

On Linux with Gunicorn
~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -70,7 +70,7 @@ If you are working on a Windows environment, take a look at `Waitress <https://d
Create a ``waitress_server.py`` in ``<KNOWAGE_PYTHON_HOME>/src`` folder with the following content:

.. code-block:: python
import multiprocessing
import multiprocessing
from waitress import serve
import importlib

Expand All @@ -86,8 +86,7 @@ Create a ``waitress_server.py`` in ``<KNOWAGE_PYTHON_HOME>/src`` folder with the
Then run:

.. code-block:: shell

python waitress_server.py
python waitress_server.py

Configure Knowage to enable Python/R functionalities
-----------------------------------------------------
Expand Down
7 changes: 3 additions & 4 deletions installation-guide/python-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You will now have to create a file called ``hmackey`` that contains the value of
Run knowage-python webservice
-----------------------------

Once you have installed all the requirements, you need to get the python-webservice running. The Python service for KNOWAGE is a Flask application: please take a look at `the official documentation <https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment>`. In order to do so, you should rely on a WSGI Server.
Once you have installed all the requirements, you need to get the python-webservice running. The Python service for KNOWAGE is a Flask application: please take a look at `the official documentation <https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment>`_. In order to do so, you should rely on a WSGI Server.

On Linux with Gunicorn
~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -70,7 +70,7 @@ If you are working on a Windows environment, take a look at `Waitress <https://d
Create a ``waitress_server.py`` in ``<KNOWAGE_PYTHON_HOME>/src`` folder with the following content:

.. code-block:: python
import multiprocessing
import multiprocessing
from waitress import serve
import importlib

Expand All @@ -86,8 +86,7 @@ Create a ``waitress_server.py`` in ``<KNOWAGE_PYTHON_HOME>/src`` folder with the
Then run:

.. code-block:: shell

python waitress_server.py
python waitress_server.py

Configure Knowage to enable Python/R functionalities
-----------------------------------------------------
Expand Down