Jupyter shows no output - anaconda

I am running few cells on my Jupyter notebook. It looks like after running the cell I don't get output second time. I have to restart the kernel, after which I am able to see the output on running the cell. But then when I try and rerun the cell there is no output again. Not sure the reason. I am using jupyter with anaconda.
I read some thread which said the output going to Ipython terminal in their case, I am not sure similar thing is happening in my case or is it something else.
I know Question is little vague but then I can not think of what more Info I can provide
Thanks

Related

Basic terminal question --> how to execute commands

I have a very silly question about the terminal. I am following a React tutorial and I am trying to set up a few things in the vscode terminal. Below you can find a screenshot of my terminal. I would like to run some more things, however, my name is not displaying and I don't know how to get it back. In other words, which command do I use to get back 'Name-air:~name$'?
Even though this is quite a noob question, an answer would really help me out:). thanks in advance!
https://carldesouza.com/how-to-stop-a-react-app-from-running-in-windows/
you can simply enter ctrl+C and it will prompt you with terminate job y/n type y and it will terminate the program

Ubuntu 20.04 very slow to get shell

I've loaded Ubuntu 20.04 on a fast Xeon based machine and it takes ~ 20 seconds to get a shell, within a terminal window. I know I've seen something about which settings to check but now I can't find it. Any suggestions where to look or what to change most welcome. Thx. J
I found an answer thanks to this post!
https://askubuntu.com/questions/717961/shell-very-slow-to-load-ubuntu-14-04
I had a line, trying to get proper keyboard mapping in my .bashrc
##xmodmap ~/.xmodmap-uname -n
It was holding up proceedings, as soon as I commented it out, essentially removing it, now get shell instantly.

Codeblock returns bad output in Mac terminal

I have a problem with my code block software in mac. Whenever I hit build or run button the code that is compiled is not returned correctly in the terminal. For example, I try to compile a simple code as in the picture and the result which is highlighted in green is wrong. I can't seem to find if it is code block or terminal faults. Would be glad if anyone can help.
Code:
You didn't set any values for a and b,
What you print is their memory address (&a and &b), not their values.
In my screenshot, everything looks normal.
By the way, I'm curious how comes are you using "CodeBlocks"? (Recommendation from a friend?)
It looks very old, and there are better environments to program in c/c++ on a Mac.

Process running when starting terminal on Mac OSX

Whenever I start terminal on my Macbook Pro it is running a process. I have to use ctrl+C to kill it. If I close the window directly it warns me that following processs are running: login, bash, bash, perl5.12.
Any idea what might be going on here and how I get back to the normal state?
I personally had this issue a while ago. First check to see if it is from one of your profiles. Assuming you are using bash, we will look at your bash profile.
First, make sure the problem is actually stemming from your bash profile. Source the scrips as follows.
source ~/.bash_profile
source ~/.profile
If after running those you observe the same hanging problem where you have to cntrl+c, then you know what script has the problem.
The best way to remedy the situation is to comment out different parts of your script to figure out where the problem is. Backup your profile and then comment out half of your profile and do a
source ~/.bash_profile
and if it hangs or not will tell you what half the problem is on. Keep repeating this until you find the problem. It sounds longer than it actually is.

Is there anyway to link iPython notebooks and PyCharm, especially regarding debugging?

iPython notebooks and PyCharm have complementary features, so I'm switching a lot from one to the other. But I would like to make the relationship tighter.
For example, when I'm in a notebook and some code blows up, I would like to set a break point in PyCharm, run my code snippet again, and explore the variables in the breakpoint's scope.
At this point, when I'm in this situation I have to either:
Use the debug command in the notebook, but the navigation within this debugger is a bit clunky (no context autofill, no back-history, no function help display... basically, it seems I'm not in a notebook anymore!)
Go to PyCharm, write a script to recreate the same environment (i.e. imports, variables with their values, etc.) as I was in in the notebook, and launch debug on that script.
This is the main use case I'd like to see solved. Of course, things like triggering PyCharm's "find usages" and "jump to definition" from iPython notebook itself would be a charm (pun not initially intended), but I'll curb my desires for the perfect IDE. For now.
PyCharm 4.0 just came out with iPython integration and allows you to edit *.ipynb files. The official notes are here. Here's how it looks on my screen:

Resources