Skip to content

Jupyter Notebooks native support through latest Python VS Code extension #16818

@l0rd

Description

@l0rd

Is your enhancement related to a problem? Please describe.

Latest python extension includes jupyter support. I have tried it out but loading a jupyter notebook failed.

image

To try it out on che.osio --> Contribute

Describe the solution you'd like

This is the devfile I have been using:

devfile.yaml
---
apiVersion: 1.0.0
metadata:
  name: python-workspace
projects:
  - name: jupyter-hello-world1
    source:
      location: 'https://github.com/chasbecker/TextAnalysis.git'
      type: git
components:
  - type: chePlugin
    alias: ms-python/python/latest
    reference: https://gist.github.com/l0rd/7190c65773a23f393a839598b22f3c1a/raw/meta.yaml
    memoryLimit: 512Mi
  - type: cheEditor
    alias: che-theia
    reference: https://gist.github.com/l0rd/7190c65773a23f393a839598b22f3c1a/raw/theia.yaml
    memoryLimit: 512Mi
  - type: chePlugin
    alias: machine-exec
    id: eclipse/che-machine-exec-plugin/latest

vscode python meta.yaml

vscode-python-meta.yaml
---
apiVersion: v2
publisher: ms-python
name: python
version: 2020.4.76186
type: VS Code extension
displayName: Python
title: Python extension
description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting,
  refactoring, unit tests, snippets, and more.
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/Microsoft/vscode-python
category: Language
firstPublicationDate: '2020-04-27'
spec:
  containers:
  - image: "quay.io/eclipse/che-sidecar-python:3.7.3-8f39348"
    name: vscode-python
    memoryLimit: '512Mi'
  extensions:
  - https://github.com/microsoft/vscode-python/releases/download/2020.2.62710/ms-python-release.vsix

Describe alternatives you've considered

I have also tried to add python in che-theia container:

FROM quay.io/eclipse/che-theia:7.12.0

USER root

RUN apk add --no-cache python3

# make some useful symlinks that are expected to exist
RUN cd /usr/bin \
	&& ln -s idle3 idle \
	&& ln -s pydoc3 pydoc \
	&& ln -s python3 python \
	&& ln -s python3-config python-config

USER theia

But it didn't help

Sub-tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/editor/theiaIssues related to the che-theia IDE of Chearea/pluginskind/enhancementA feature request - must adhere to the feature request template.kind/epicA long-lived, PM-driven feature request. Must include a checklist of items that must be completed.new&noteworthyFor new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notesroadmap/3-monthsEpics that are planned to complete in the short term (within 3 months)severity/P2Has a minor but important impact to the usage or development of the system.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions