Kernel Error in Anaconda Python Jupyter Notebook - python-3.x

I have started learning python and in the initial stage i am not be able to execute any code on python. While searching over the google, i found that it occurs due to kernel error and same is reflecting on the top and trust box is disabled. I have re-installed the software 2/3 times and Anti Virus program was also disabled until software gets installed properly on system. But it didn't work. I am attaching the screen shot for your reference.
I am totally new in the programming end and hence if you could explain me what exactly needs to be install step by step it would be helpful to make things done easily. There are many posts wherein answers are mentioned, but i didn't understand how those code to be executed.

Please try out by creating a new conda environment.
Create conda environment using the command :
conda create -n <env_name> -c intel python=3.6
Activate the environmemt using the command :
source activate <env_name>
Please install the required packages in this environment.
Kindly install the ipykernal using the command:
conda install ipykernel
ipython kernel install --name <env_name> --userĀ 
Select the installed ipykernal from your jupyter notebook.
Hope this helps.
Please refer the following link, https://github.com/jupyter/notebook/issues/2301

Related

Jupyter not working in VSCode Virtual Envirronemnt

I am new to jupyter and right from start I am trying to run it in VSCode and that too with a virtual environment. I hope that is not too much for you guys.
So here are steps I did;
I installed python and vscode
Added Paths in windows and all virtual environment things work fine
For data processing I created new virtual environment 'DataProcessingVenv'
I opened this venv in Terminal in VSCode and installed Pandas
I did pip install Jupyter
I did pip install ipykernel
next did ipython kernel install --user --name=DataProcessingVenv
In VSCode I created new notebook
pressed Ctrl+Shift+P and selected interpreter as /DataProcessingVenv/Scripts/Python.exe
Now I am trying to read a csv present in same fodler where notebook is present but somehow it is not working. I really don't know what is wrong and where, even don't know if I have provided all required info to solve the issue. Please guide me it some more info is required or if I can do something to solve the issue. I am attaching the current image in VSCode with error at the end.
So at the end the solution was simple. But it took time to learn. I just had to run all previous cells in Jupyter to make the current cell work.

Installing Anaconda on Linux VM Instance on Google Cloud Platform

I have provisioned a VM (ubuntu-minimal-1804) on google cloud platform. I want to install anaconda3 and run jupyter notebooks on it. I lack the Computer Science/ IT background and hence tried to follow the online resources. I am finding it difficult install the anaconda3 and jupyter on the VM despite following these sources. Can anyone help me with this? I would really appreciate if anyone can provide me with step-by-step guide.
Note: These are the links that I followed but failed to install anaconda
https://www.cloudbooklet.com/how-to-install-anaconda-on-ubuntu-18-04-lts-google-cloud/
https://www.datacamp.com/community/tutorials/google-cloud-data-science
Thank you in advance
The steps that you have followed should be applicable to your Ubuntu 18.04 LTS VM (with the official image and default setup), after locating it in your instances list and clicking on the SSH button.
Despite the "minimal" images lacking some of the commonly-used utilities in Ubuntu, I could test the commands in the guide in a new VM from the ubuntu-minimal-1804-lts image family and managed to successfully install Anaconda3, except for the VSCode installation that seemed to have an outdated server connection check.
I would also recommend trying the latest installer for Anaconda3 that's available in the repo archive instead, as the one in the guide is a bit outdated:
$ curl -O https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
$ rm -rf ~/anaconda3 # (clear previous attempted installation first, if any)
$ bash Anaconda3-2020.11-Linux-x86_64.sh
In any case, as suggested by John Hanley, feel free to comment below or edit your question with any errors that you might get.

Jupyter Notebook and pandas installation?

currently i am doing course on Data Science on coursera but i dont know how to install jupyter notebook environment as well as pandas library can anyone show me how it is done?
For fulfilling above requirement please install Anaconda(data science toolkit) in you system which comes with all the packages/modules which includes Pandas,Numpy and Jupyter notebook.
Anaconda comes with follow packages check out the link
Anaconda Download Link
How to install Video Guide link
I recommend you download & install Anaconda Navigator
Once you install & launch it, you can then download Jupyter notebook from the dashboard of anaconda navigator
If you want to create a new environment, say new_env, then there is an option for creating a new environment aswell. Just select if you want to use Python or R, and which version you want and a new environment is created
Assuming you are using windows, search for Anaconda Prompt from the windows start and activate the new_env by doing: activate new_env
When the new_env is activated, just follow the instructions here for installing pandas
You can also check this like out: Installing Jupyter Notebook

Anaconda environment creation

I am new to python and machine learning. I am trying to create separate anaconda environments for tensorflow, keras, etc. in my Windows machine. I have successfully installed anaconda with automatic environment path setup. Created a test environment but when I try to create another one I get the following error. I have python 3.6.2 and 3.7.2 installed in conda. When I write the command
conda create -n t_tensor
it gives the following error. Not sure where the problem is. Any help is appreciated.
Thank you.
Error Image

PyCharm + conda + pip packages not recognized

I can say I am quite new to the world of Python but not to programming. I have been using PyCharm over the last year and I got Python conda distribution to make my life easier with package management.
Lately, I have been trying to play with a package known PuLP which was not available to download via conda but I installed using pip. I realized that although PyCharm recognizes pulp when running my code, it is not in the available packages and I am not sure that the same version of PuLP is used in and out of PyCharm. Specifically, when I run the pulpTestAll command that looks for installed solvers from my terminal, the recognized solvers are different than those recognized when I run exactly the same script within PyCharm.
Can someone give me a tip on how to fix this?
How do I import modules in pycharm?
You may look here. Maybe you have to specify an interpreter for the Conda environment. To do that when you are choosing an interpreter at the right there is a gear at the right. After you press it, you may add a new interpreter and you can choose Conda Environment.

Resources