When on jupyter console and I hit the up arrow key, I'd like to go to the previously run line of code on that console. However it will read a previously run cell from a jupyter notebook instead. Is there a way to prevent this from happening?
Related
As seen in the screenshot the kernel is "Not specified" and can not set since the dropdown is disabled. Can this be remedied?
The Project interpreter is python3 and otherwise for other file types the project works fine
I've run into the same issue of PyCharm not allowing me to select a Jupyter kernel other than the one that is saved to the notebook (the drop-down menu is either grayed-out as in your picture, or disappears altogether). This condition appears to occur when the kernel that was active when the notebook was saved is not available in the current environment. The only workaround I've found for this situation is:
Start a Jupyter notebook server using the same Python environment as you are using in PyCharm
From the Jupyter server web page, open the notebook
From the Kernel menu, select Change kernel, and then select the desired kernel
Save the notebook, then close/halt it
Re-open the notebook in PyCharm. It should then be able to execute with the kernel that was chosen in Step 3 above.
I'm having a strange issue. I have a problem with reindexing when i call my script with a jupyter notebook but it work fine when i call it directly using pycharm.
The first time i execute the notebook after i just started jupyter notebook it work but then it never work again. And it give me this error :
ValueError: cannot reindex from a duplicate axis
I suspect a problem between pandas and jupyter notebook. Because this error never appear when i use pycharm.
Do you have any idea on how i can fix this problem so that i can call my script from a jupyter notebook ?
I'm using the same conda env for both the jupyter notebook and pycharm.
I fond that Jupiter-notebook does not re-import the modules every time you execute it.
I had a problem with a variable that was not overwrite I changed the constructor of my script to be able to rewrite it and it work fine now.
I'm trying to change the default working directory for Jupyter notebooks (anaconda installation). I've looked up many different answers, most of which focus on changing the jupyter_notebook_config.py file, but none of those work.
Some of the things i've tried:
This medium article
This github issue (bottom reply)
This
This too
No matter what I try, whenever I start jupyter notebook the directory I see is C:\Users\me.
I admit part of the problem is that I'm not great with command line things which makes some of the answers difficult to understand.
If you run the Jupyter Notebook from the Windows Start Menu then you have to change the command running Jupyter Notebook in the shortcut. Right click on the Start Menu on the shortcut, open file location, right click on the Jupyter Notebook shortcut, select Properties, and in the Terget Textbox, change the "%USERPROFILE%" part in what you wand or if you have changed the Jupyter config file, delete this part.
Requirement:
Be able to audit (using logs) all the commands run in Jupyter Notebook by a user. The Jupyter Notebook is installed on Dataproc.
Is there a way we can log the command run by the user at the same time.
I have already tried changing Application.log_level in jupyter config file to 0 but no luck.
Looks like there was some discussion about this FR in the Jupyter community: https://groups.google.com/forum/#!topic/jupyter/sLKCCBwlKEc. You would have to modify the Jupyter kernel to print out all commands to a file.
I just installed Miniconda and the R Essentials bundle on my Windows 10 machine, following the instructions given here. Everything went swimmingly until I opened up an Anaconda command prompt and entered jupyter notebook and got an error. I then used ipython notebook which worked, so okay, no problem there.
However, after creating a new folder and trying to create a new R notebook within that folder, my Jupyter tabs started to hang. Whenever I try to do something, whether it is rename the notebook, run a block of code, basically anything, all of the Jupyter tabs sit there loading endlessly saying "Waiting for localhost..."
I try stopping the server and restarting it, but every time I try to do anything I get the same result. I also tried changing the port and running the command prompt as administrator--same result. I am using Chrome, which shouldn't be an issue.
Any ideas? I was really excited about using a Jupyter notebook to keep track of my analyses in R, but if I can't even get it to function out of the box I'll have to find a better solution.