Skip to main content
-1 votes
0 answers
44 views

Can't switch python interpreter in Spyder. How do I change the default? ("same as Spyder")

I just updated Spyder, and now I get an import error for sklearn (scikit-learn) every time I run my code. scikit-learn is installed correctly in my base anaconda environment, which is where I want to ...
Maia's user avatar
  • 1
1 vote
1 answer
89 views

The until function never exits

I am writing a lisp interpreter with rust. I already have a lot of functions, but the loop does not seem to work. The loop is until, which is the opposite of while. It loops until the value is t. use ...
Felix508's user avatar
2 votes
5 answers
174 views

implement multiple dispatch (like in julia, numba, etc) in C

Preamble So i've noticed that a lot of functional / jitted languages (eg julia, numba jit for python) have virtual methods attached to "functions" rather than classes, and those "...
Daniil Zuev's user avatar
0 votes
0 answers
51 views

Mismatch Between Quantized TFLite Layer Outputs and Expected Mathematical Values When Using get_tensor()

I am trying to extract intermediate outputs from a quantized TFLite model using the TFLite interpreter. The goal is to verify that the model's intermediate outputs match the mathematically expected ...
user30607871's user avatar
1 vote
1 answer
88 views

Multiple Python Paths

I have multiple Python Paths to choose from as seen in the images. I remember installing Python via brew and through the internet and Anaconda. I don't have any idea which are redundant and what to ...
Vale's user avatar
  • 33
-6 votes
1 answer
55 views

import : The term 'import' is not recognized as the name of a cmdlet etc [closed]

im trying too import packagaes to my pycharm such as tensorflow and the same message pops up saying the term (import) is not recognized. My understanding is that pycharm is interpreting these commands ...
Jason NuKes's user avatar
0 votes
1 answer
67 views

Is there a way to instrument python code like this to run my tracing function on it? [duplicate]

So for example if I have this python code def adder(x,y): return x + y So I am tracing the values of variables for python source code and I want to run the sys.settrace using my trace function on ...
Anuj Kumar's user avatar
0 votes
0 answers
30 views

VS Code switching the interpreter from conda to base

I'm trying to learn to use conda the "right" way. In the past I was creating new virtual environments using the shift+command+p combination and picking the "create environment" (I'...
ilya's user avatar
  • 1
1 vote
0 answers
36 views

PyCharm associates the system interpreter with new folders opened as projects—how to disable this behavior?

For some time now, I’ve noticed that PyCharm automatically associates the system interpreter with every folder I open as a project for the first time. This isn’t the same as creating a new project—it’...
stiky's user avatar
  • 11
1 vote
1 answer
98 views

Is V8 Ignition "Interpreter" capable of producing byte code only because it was built on top of TurboFan Compiler?

The V8 Engine contains both Ignition "Interpreter" (which is an interesting name for something that not only interprets) and TurboFan Compiler. TurboFan compiler helps to optimize "hot&...
sebkaminski16's user avatar
0 votes
2 answers
58 views

How to ensure that the Python file is correctly executed in a nested folder structure?

I am trying to run a Python file from a codebase, and have created a minimal example to explain the issue that I am facing. foo ├── bar │   ├── burp │   │   └── cache.py │   ├── __init__.py │   └── ...
Abhilash's user avatar
  • 199
0 votes
1 answer
75 views

Differences between Trinket and online-python.com

I have this computer program that's supposed to draw a Hand of Mahjong Tiles from a deck: # imports random import itertools, random # make a deck of tiles deck = list(itertools.product(range(1, 5), ...
Anonymous's user avatar
1 vote
0 answers
79 views

Fastest x86 64 jump table. What are the methods for making very performance oriented jump table?

I am in the process of optimizing a program that interprets some byte code, and depending on it jumps to different instructions. Since we have the instruction in byte code already ordered from 0-17, ...
Kosmas Xenakis's user avatar
0 votes
0 answers
70 views

Python code pauses execution randomly till I move the VS Code Terminal

I am running an code which performs inference for several hours. However when it seems to randomly pause. But when I move the VS Code's terminal border/window slightly, it starts executing. I don't ...
Shubeeksh K's user avatar
-1 votes
2 answers
115 views

Why will a syntax error prevent Python from running preceding lines? [duplicate]

Why is the CPython interpreter not executing the previous statements if an EOL syntax error occurs in a later line? I thought that an interpreter is supposed to execute all the statements in a file ...
tony pd's user avatar

15 30 50 per page
1
2 3 4 5
153