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

Edited index.tsx to display python version #6769

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/help-extension/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { jupyterIcon } from '@jupyter-notebook/ui-components';

import * as React from 'react';

from platform import python_version /* to print Python version it is running on */

/**
* A list of resources to show in the help menu.
*/
Expand Down Expand Up @@ -114,10 +116,12 @@ const about: JupyterFrontEndPlugin<void> = {
</span>
);
const version = trans.__('Version: %1', app.version);
const py_version = trans.__('Python version: %1', app.python_version());
const copyright = trans.__('© 2021-2023 Jupyter Notebook Contributors');
const body = (
<>
<span className="jp-AboutNotebook-version">{version}</span>
<span className="jp-AboutNotebook-python-version">{py_version}</span>
<div>{externalLinks}</div>
<span className="jp-AboutNotebook-about-copyright">
{copyright}
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function runAndAdvance(
): Promise<void> {
await page.keyboard.press('Shift+Enter');
}

/** akshitha added a commnet here*/
/**
* Wait for the kernel to be ready
*/
Expand Down