GithubHelp home page GithubHelp logo

inseefrlab / vscode-python Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 7.0 58 KB

A docker image based on https://github.com/cdr/code-server tailored for python programming

License: MIT License

Dockerfile 100.00%
ide datalab docker-image technical-building-block

vscode-python's Introduction

What is vscode-python?

A docker image based on https://github.com/cdr/code-server tailored for python programming.

It aims to provide a state-of-the-art IDE with some modules adapted to Python to help developers.

How to use it

To run a Python script in interactive mode, create a new file with .py extension, write some commands, e.g.

import pandas as pd
pd.DataFrame([0, 1, 2])

and press SHIFT + ENTER

If you need a package, e.g. flask, open a terminal and run

pip install flask

Everything is integrated within a conda environment. You can also use

conda install flask

in a terminal if you prefer.

You can also edit a Jupyter Notebook (extension .ipynb) file. The Jupyter extension as well as additional useful extensions (Git Lens among others) is available.

Please visit https://github.com/cdr/code-server to learn how to use this image.

How to contribute

If you find something is missing for general python programming with this image, don't hesitate to let us know, either with an issue or by submitting a PR.

Tips

  • Use Settings Sync to sync up your custom configuration and extension and start a new properly tuned session in a heartbeat.
  • The paste shortcut in the terminal is: SHIFT + INSER
  • To execute code use SHIFT + ENTER

Run in a local container

First pull the image:

docker pull InseeFrLab/vscode-python
docker run -it -p 127.0.0.1:8080:8080 -e PASSWORD="YOUR_PASSWORD" InseeFrLab/vscode-python

๐ŸŽ‰ open your browser at http://localhost:8080/ and use the password you chose (e.g. YOUR_PASSWORD)

vscode-python's People

Contributors

avouacr avatar fcomte avatar juliettes avatar linogaliana avatar olevitt avatar thomasfaria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vscode-python's Issues

Installing quarto on vscode ?

Hi,

I started to use quarto which can be used with a nice VisualStudio extension (https://quarto.org/docs/tools/vscode.html). I think it is a great tool that would ease the use of Python with reproducible documents (alternative to Jupyter) and interaction computations.

Would you consider adding quarto to the image as well as the extension ? I can do the PR, I have every pieces needed.

Vault not available

I just saw that vault is not available when launching a visual studio instance

I am going to propose a PR

Https

Hey,

I just tested this image in portainer with traefik, because I use it online, is there an way to enable the https port easily? With an label or something?

Install C++ compiler

When installing python dependencies based on C++, I sometimes have troubles :

pip install fasttext
RuntimeError: Unsupported compiler -- at least C++11 support is needed!

Installing g++ solves the problem (here)

sudo apt-get install g++

Could we put that in Dockerfile such that it is available by default ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.