-
Notifications
You must be signed in to change notification settings - Fork 293
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
Slow to open a notebook and run cells kernels #8274
Comments
@NomeChomsky Description: The cells are below. I can run cell one, and it takes 1.9 seconds to complete (a little slow) then the next cell simply doesn't run. The 'play' button does nothing. OS - Windows 11 Evaluation Copy. Build 22499.rs_prerelease.211105-1550 Sample notebook: #CELL 1 %env DJANGO_SETTINGS_MODULE = dask.settings
%env DJANGO_CONFIG = dev
import os
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
import django
django.setup()
from apps.scraping.ethparser import parse_transfers
from apps.ethscan.models import Transaction, Address, TokenInfo, Balance
from apps.core.models import SignallyUser
from apps.scraping import ethplorer, ethparser
from django.utils.timezone import make_aware
from datetime import datetime, timedelta
import requests
from django.core.cache import cache
from django.db.models import F, Count, Sum, Subquery, Q, ExpressionWrapper, When, OuterRef, Max, Avg
import re
import arrow
from apps import scraping
from statistics import mean
import arrow
from collections import Counter
import operator
from pprint import pprint
from loguru import logger
import requests
from itertools import groupby`
# CELL 2
`ROUTERS
SUSHI_SWAP_ROUTER = '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
UNISWAP_ROUTER_V3 = '0xe592427a0aece92de3edee1f18e0157c05861564' # MOST ACTIVE
UNISWAP_ROUTER_V2 = '0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc'
UNISWAP_ROUTER_2_V2 = '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'
TOKEN_UNISWAP_V2 = '0x21C5918CcB42d20A2368bdCA8feDA0399EbfD2f6' OUTPUT:
|
@NomeChomsky The first cell above took 54.5 seconds to run. The next cell didn't work at all. |
Thanks for providing the logs, however I don't think this is all of the logs or something isn't right. It starts at 12:20:43 and ends at 12:20:47. I guess that's what your mean by first cell runs in 1.9 and second did nothing. Please could you
|
@NomeChomsky This is the output from the console window as it tries to start the notebook:
This is the output of the Jupyer Output terminal (which goes unstable the same way Jupyter does)
|
@NomeChomsky Here is a screen recording of the issue: The issue persists. I tried to downgrade versions of Vscode but it still persisted then vscode automatically updated me anyway. I also tried to get down a version on the dev/beta insider release, but the problem remains. |
@NomeChomsky I totally re-installed windows 11, and with it WSL2 (Ubuntu 20.04). I re-installed the poetry environment, (lots of dependencies) and I installed code-insiders. Even on a fresh install the problem remains - it can take up to a minute for a cell to run, the same cells I shared above. I thought it might have been a problem with python versions, or pyenv, but I even installed a new version of python for the poetry env to use (3.10) and the problem persists. The notebooks often won't save, the cells take a very long time to run or do not run at all, and the notebooks take a long time to open and become ready to run cells. Vscode seems to take a long while to open python interpreters also - it gives the spinning wheel for probably 90 seconds to two minutes. |
@NomeChomsky |
@NomeChomsky I've created this new issue so we can track the problem you are facing. Finally I'll create a new VSIX with some additional changes today and provide it to you so you can test that out. |
Thanks - very helpful. So more info - it responds well enough when switching inter[reters in the top right. If I choose my global python 3.10 version it asks me to install ipykernel (as its not installed globally) So I thought I'd try removing ipykernel from my poetry env, and reinstalling it. This sort of worked, the first cell ran much faster the first time round,. But on reporting an exception (in the first cell) I was right back at square one, the notebook became unstable again. |
Thats great news. Do you have any idea what version was installed. Again, thanks for the feedback.
What do you mean by
The screen recordings & logs help a great deals, & thanks again. |
Ok so right now it is working a bit better. Interestingly, reinstalling the ipykernel did seem to do something but the version didn't change. This is the poetry readout on my env:
|
Thanks, possible some other dependency was updated/re-installed (re-compiled). Thats great news. |
Ok great - I will keep an eye on it (obviously - what else can I do!?) for a few days and then report back here. |
I'm going to close this for now, but please feel free to re-open this or create a new issue when u run into this. |
Originally Reported here #7069
Environment data
Expected behaviour
Fast to open and run cells.
Actual behaviour
The text was updated successfully, but these errors were encountered: