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

Several strange behaviors on Windows #127

Open
miechoo opened this issue Aug 8, 2024 · 9 comments
Open

Several strange behaviors on Windows #127

miechoo opened this issue Aug 8, 2024 · 9 comments

Comments

@miechoo
Copy link

miechoo commented Aug 8, 2024

On Windows 11 with Jupyter Version: 7.2.1 and cell running Java code.

In my scenario I used sleep function for 10s.

Unexpected behavior: the counter starts counting from some non zero position.

image

Unexpected behavior: when script ends, the value is "0ms".
image

@miechoo miechoo changed the title Several strange behaviors in Windows Several strange behaviors on Windows Aug 8, 2024
@krassowski
Copy link
Collaborator

  • What version of this extension do you have installed?
  • Can you share the timing metadata of these cells?

@miechoo
Copy link
Author

miechoo commented Aug 9, 2024

jupyterlab-execute-time 3.1.2
how can I get the timing metadata?

@krassowski
Copy link
Collaborator

You can open the notebook using text editor, or use the Property inspector in the sidebar

@miechoo
Copy link
Author

miechoo commented Aug 9, 2024

cell metadata:

{
    "execution": {
        "iopub.status.busy": "2024-08-09T14:43+0000",
        "iopub.execute_input": "2024-08-09T14:43+0000",
        "iopub.status.idle": "2024-08-09T14:43+0000",
        "shell.execute_reply": "2024-08-09T14:43+0000"
    },
    "trusted": true
}

notebook metadata:

{
    "kernelspec": {
        "display_name": "Java",
        "language": "java",
        "name": "java"
    },
    "language_info": {
        "codemirror_mode": "java",
        "file_extension": ".jshell",
        "mimetype": "text/x-java-source",
        "name": "Java",
        "pygments_lexer": "java",
        "version": "11.0.16.1+1-LTS"
    }
}

@krassowski
Copy link
Collaborator

Well, this is what the metadata says - all values are equal to 2024-08-09T14:43+0000 . This extension simply renders these values as computed by the kernel and extracted by JupyterLab.

Possibly the Java kernel that you are using is not reporting started in execution metadata, or has a non-standard message reply sequence. The relevant code for metadata extraction is in jupyterlab, here and around it.

@krassowski
Copy link
Collaborator

Which Java kernel are you using? https://github.com/SpencerPark/IJava or https://github.com/allen-ball/ganymede or something else?

@miechoo
Copy link
Author

miechoo commented Aug 20, 2024

The IJava v 1.3.0

@krassowski
Copy link
Collaborator

In that case I would recommend reporting the issue over in https://github.com/SpencerPark/IJava.

@krassowski
Copy link
Collaborator

That said, IJava was not updated in last 5 years. https://github.com/allen-ball/ganymede looks active though - maybe a better fit for 2024?

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

2 participants