Comments (5)
Hey @manethedane, thanks for reporting. I have a quick question for you: did you define your gaussian_likelihood
function in the console and then run your other code from the editor?
from spyder.
from spyder.
Ok, thanks for clarification. Could you upload a screenshot to see how you're running your code?
Please be aware that you can't send images via email. Instead, you need to drag and drop them directly here, on the Github website.
from spyder.
from spyder.
Thanks @manethedane! Although it's not visible, I think you the first command you ran in the console was
import numpy as np
If that was the case, then it means you didn't run the code you have in the editor before trying to call gaussian_likelihood
in the console. And that's why you're getting this error.
So, all you need to do before running
x = np.array([1,2,4,0])
gaussian_likelihood(0.34,np.var(x),x)
is pressing F5
or clicking on the Run button in our main toolbar (i.e. the green play button). That will load your editor code in the console so you can experiment with it there.
Let us know if that solves the problem for you.
from spyder.
Related Issues (20)
- Internal Python Language Server error HOT 1
- New file opened without prompt when edited from elsewhere HOT 2
- Internal Python Language Server error HOT 1
- Editor tab no longer called "Editor" HOT 1
- Problem uploading data set HOT 2
- internal problem occur when using AutoGen humanm_input+mode = TERMINATE' HOT 1
- local variable 'channel_url' referenced before assignment HOT 1
- Please indent parameter descriptions in tooltips
- not creating webapp HOT 1
- DataFrame won't show HOT 1
- Code highlight removed after run selected or current line
- Gráfico HOT 1
- Input function is not working HOT 1
- I have goverment/ tech companies and people watching my coding and taking my codes HOT 1
- internal problem HOT 1
- encountered some internal problem HOT 1
- problem updating spyder HOT 1
- Use Python 3.11 in the Spyder 6 installers HOT 3
- Debugging keyboard shortcuts in Spyder 6 editor
- Snapping Spyder 6 while `Show breakpoints` is active is broken HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spyder.