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

AttributionError in Jupyter Notebook on Windows #788

Open
finsnoop opened this issue Apr 8, 2020 · 5 comments
Open

AttributionError in Jupyter Notebook on Windows #788

finsnoop opened this issue Apr 8, 2020 · 5 comments

Comments

@finsnoop
Copy link

finsnoop commented Apr 8, 2020

Expected behavior

I am experimenting with pixiedust 1.1.8 in Jupyter Notebook on Windows 10, which I suppose should run fine.

Actual behavior

However, I instead get the following:

\nAttributeError: module 'time' has no attribute 'clock'\n

Could someone advise on what could be the issue, please?

Here is my code

import pandas as pd
import pixiedust

df = {"age":[50,12,34,53,22,44], "height":[4.5,5.0,6.0,5.5,4.7,5.9], "name":['peter','mike','john','james','frank','paul']}

dataset = pd.DataFrame(df)

display(dataset)

@sonictl
Copy link

sonictl commented Jun 21, 2020

python 3.8

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)

so, just modify the display.py source file in package of pixiedust can fix this error.
modify the time.clock()s in line 335 and line 337 into: time.process_time()

@playground
Copy link

Hi,

I'm getting the same error, is there a fix for this other than modifying the source file?

@Sandy4321
Copy link

any updates

@Sandy4321
Copy link

see also
#796

@Sandy4321
Copy link

but fix above helps
python 3.8

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)

so, just modify the display.py source file in package of pixiedust can fix this error.
modify the time.clock()s in line 335 and line 337 into: time.process_time()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants