formulahendry / formulahendry/vscode-code-runner

Code Runner in Visual Studio Code not accepting python 3 environment changes in Linux

Open
#548 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

![bug2_vs](https://user-images.githubusercontent.com/28985314/66568517-98c09f80-eb37-11e9-8f87-d8cbc1de1944.gif)

1. Normalizing an array to a specific max value using Python 3 Bug?
```
import math
import numpy as np

test_array = [1, 2, 3, 4]]

def rtnormalize(curr_array,max_value_wanted):
arry_norm = curr_array/np.amax(np.absolute(curr_array))*max_value_wanted

return arry_norm
print(test_array)
print(rtnormalize(test_array,1.45))
```

## Actual & Expected behavior

**The values should be: 0.3625,0.725,1.0875,1.45**

[https://stackoverflow.com/questions/58315138/normalizing-an-array-to-a-specific-max-value-using-python-3?noredirect=1#comment103002727_58315138](url)

### Your Jupyter and/or Python environment
*Please provide as much info as you readily know*
Version: 1.39.0
Commit: 9df03c6d6ce97c6645c5846f6dfa2a6a7d276515
Date: 2019-10-09T06:58:03.188Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.15.0-65-generic snap
Name: Code Runner
Id: formulahendry.code-runner
Description: Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim,
Version: 0.9.14
Publisher: Jun Han
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner

![](https://i.imgur.com/fbpf9DK.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.