Skip to content

Commit

Permalink
removing unused package and matplotlib dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Red Giuliano committed Jan 9, 2025
1 parent 3c55928 commit 9202e17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion zt_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import webbrowser
import logging
import traceback
import matplotlib

app = FastAPI()
logger = logging.getLogger("__name__")
Expand Down Expand Up @@ -39,7 +38,13 @@
@app.on_event("startup")
def open_project():
try:
import matplotlib
matplotlib.use("Agg")
except Exception as e:
logger.info('matplotlib not found')
try:


notebook_path = Path(settings.zt_path) / "notebook.ztnb"
if not notebook_path.exists():
logger.info("No notebook file found, creating with empty notebook")
Expand Down
1 change: 0 additions & 1 deletion zt_backend/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
from typing import Optional
import mimetypes
from typing import Dict, Tuple, Optional
import aiofiles
import tempfile
from zt_backend.utils.file_utils import *

Expand Down
1 change: 0 additions & 1 deletion zt_backend/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Dict, Optional, Tuple
from fastapi import HTTPException
from pathlib import Path
import aiofiles
import os
from pathlib import Path
from typing import Dict, Set, AsyncGenerator
Expand Down

0 comments on commit 9202e17

Please sign in to comment.