formulahendry / formulahendry/vscode-code-runner
Code Runner in Visual Studio Code not accepting python 3 environment changes in Linux
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description

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

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.