Vs Code Not Loading Jupyter Notebook Images - python

I love the way vs code works with jupyter notebooks and WSL 2. However, the only thing stopping me from switching completely is the lack of image rendering from a distributed notebook. When I download a notebook from class, there are sometimes important images displaying flowcharts, diagrams, etc and these do not load on vs code but they do on Anaconda using jupyter notebook there. Any ideas?
Vs Code Jupyter Notebook
anaconda jupyter notebook loaded

Related

Can´t make jupyter notebook work in Anaconda

On my windows PC, i have Anaconda installed, but today i could not open Jupyter Notebook correctly. When i use these commands to set up an enviornment, i can open the Jupyter notebook.
conda activate [name_of_the_environment]
jupyter notebook
The error occurs when internet explorer opens the Jupyter notebook, because i can't access to my ipynb files or any other. The page just stays like this (in blanc, like it does not end loading):
Internet explorer general site
Trying to open a file
I am not having any connection problems and this happens regardless of the file size.
I also tried updating Anaconda, but it didn´t work.
Code written in the terminal:
Code

How to run GitHub project in a Jupyter Notebook?

I try to run this code in my own computer: https://github.com/ThaiPham27/Depression_Detection_DNN
I've downloaded the zip file but I have no idea how can I run this code in Jupyter notebook and get the output. I couldn't find any complete guide for that.\
I have Python 3.9 on Windows 10.
you can only run notebook file on Jupyter Notebook, and the extension of notebook files is ".ipynb"
And you need to have jupyter notebook on your system, or you can download Anaconda package for that.
P.S: I also briefly looked into the notebook, seems like it was setup for Google Colab as it is using some CSV from google drive.

Jupyter Notebook creates a .txt file - and doesn't let me save as .ipynb. Manually creating a .ipynb file doens't open a jupyter notebook

I'm trying to move my data science Environment to VSCODE, it seems a really powerfull IDE to deal with multiple languages and with great versatility,
But currently I'm dealing with an annoying issue with the python and jupyter extension,
Expected behaviour
Using command palette 'Jupyter: Create blank new Jupyter notebook' it should open a .ipynb file with all the features of a jupyter notebook.
(source: https://code.visualstudio.com/docs/datascience/jupyter-notebooks)
Actual behaviour
Using command palette 'Jupyter: Create new blank notebook' it opens a jupyter notebook with all the features and the proper jupyter notebook layout, but with extension .txt.
I tried to save it as .ipynb but returns and error and don't let me save it.
When I create a file manually with 'filename.ipynb' it creates a file with the jupyter icon, but without all the features of a jupyter notebook.. it is a simple plain script file like a .py file.
I already have done a lot of web search looking for some solution, but without success.
already tried reinstall vscode and downgrade some versions of the python and jupyter extensions, but all without success.
Any help to solve this would be appreciated.
Environment data
VS Code version: 1.59.0
Extension version : Python v2021.8.1105858891, Jupyter v2021.8.1195043623
OS and version: Windows 10 64bit
Python version : Python 3.9.6 64bit

Use multiple kernels in the same Jupyter notebook

Can I use multiple kernels in the same Jupyter notebook, such as I can choose specific code-block to run with specific kernel version?
Example:
I want to have two code blocks in the same notebook file(.inypb), one of them has Python 2.7 code and other code block has Python 3.0 code, both of them should run against its own kernel version.
This SOS Polyglot Notebook extension for Jupyter should allow you to use multiple kernels in the same Jupyter notebook: https://github.com/vatlab/jupyterlab-sos

graphs from Altair are not displaying

On Ubuntu x64, I just freshly installed Anaconda 3.
I then installed altair via conda per these directions. Then I run the example code:
from altair import *
population = load_dataset('population')
Chart(population).mark_bar().encode(
x='sum(people)',
).transform_data(filter="datum.year==2000")
The code runs, but nothing happens. I expected a page would open in the browser perhaps, like bokeh does. To be safe, I also ran jupyter notebook in the background and re-running the code - no difference.
Please let me know if there's more information you need about my environment.
Thanks to #cel, I found out the code cannot be run in the iPython console from Anaconda - it needs to be run from a Jupyter notebook.
You have to run jupyter notebook in the terminal, then create a new iPython Notebook. Once the notebook is created, you can run your code interactively from the notebook.

Categories

Resources