Skip to content

Commit

Permalink
Added Custom python translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Nov 28, 2024
1 parent 653af60 commit 00e55b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json_stream_provider/custom_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging.config
import logging
import time
from datetime import datetime

Expand Down
4 changes: 3 additions & 1 deletion local-run/with-jupyter-notebook/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ events {
}

http {

client_max_body_size 200M;
server {
client_max_body_size 200M;
listen 80;
server_name localhost;

Expand All @@ -17,6 +18,7 @@ http {
}

location /jupyter/ {
client_max_body_size 200M;
proxy_pass http://jupyter_notebook:8888;

# WebSocket support
Expand Down
2 changes: 2 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

from json_stream_provider import papermill_execute_ext as epm
from json_stream_provider.custom_engines import CustomEngine, EngineBusyError
from json_stream_provider.custom_python_translator import CustomPythonTranslator
from json_stream_provider.log_configuratior import configure_logging
from json_stream_provider.papermill_execute_ext import DEFAULT_ENGINE_USER_ID

Expand All @@ -52,6 +53,7 @@

configure_logging()
CustomEngine.create_logger()
CustomPythonTranslator.create_logger()
logger: logging.Logger = logging.getLogger('j-sp')


Expand Down

0 comments on commit 00e55b3

Please sign in to comment.