Skip to content

Commit

Permalink
fix: Use jupyter_server instead of notebookapp jupyter/notebook#7010
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 5, 2023
1 parent be213d8 commit be1aa51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ocdskingfishercolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from gspread_dataframe import set_with_dataframe
from IPython import get_ipython
from IPython.display import HTML
from notebook import notebookapp
from jupyter_server import serverapp
from oauth2client.client import GoogleCredentials
from oauth2client.contrib.gce import AppAssertionCredentials
from pydrive2.auth import GoogleAuth
Expand Down Expand Up @@ -338,7 +338,7 @@ def write_data_as_json(data, filename):


def _notebook_id():
server = next(notebookapp.list_running_servers())
server = next(serverapp.list_running_servers())
return requests.get(urljoin(server['url'], 'api/sessions')).json()[0]['path'][7:] # fileId=


Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ install_requires =
httplib2
ipython
ipython-sql~=0.4.0
jupyter_server
matplotlib
notebook
oauth2client
pydrive2
requests
Expand Down

0 comments on commit be1aa51

Please sign in to comment.