I somehow recently am not able to load my notebooks anymore in VSCode. I do not know how to solve this infinite loading problem.
Below a screenshot:
And another one:
So far Google was not able to help. Hope someone here can.
Thank you!
This is probably related to the VSCode itself rather than jupyter or python installation. On the actual VSCode GitHub repo, few issues are still open, apparently not fixed yet. What seems to be working though, is, to try killing all VSCode processes and trying again.
ps aux | grep -i vscode | less
pkill -f vscode
Related
I'm a newbie in programming but now have to use terminal a lot.
After having a brush with losing my .zshrc once before, I've been careful not to disrupt it but I installed iterm2 and oh my zsh and now almost no commands are working. I've been through all the links I could find to try trouble shoot it but i'm coming up bagels.
Context:
Mac OS monterey 12.5 macbook air M1.
default terminal was zsh
Installed iterm2 and zsh according to this tutorial.
My .zshrc file now looks like the default that is overwritten by oh my zsh (hence the issue as my paths are now gone).
I've tried the following pages for help:
This one which suggests that I copy across my ~/.bashrc which I don't have. or the other work around which I went through and tried all the suggestions in there to no avail. Brew wasn't working so I tried that again, tried to uninstall everything and even tried to 'pip-purge' but that wasn't a recognised command either.
The first thing I've been trying to run was jupyter so I'll use that as the reference point. which and where are pulling up nothing. Trying to install it again shows it is installed. trying jupyter --version or --path shows nothing. I even tried 'sudo' on one of the solutions and it said that sudo was an unrecognised command.
My current paths that I have tried to put into the .zshrc file are as follows:
export PATH=$PATH:~/.local/bin
export PATH="/opt/homebrew/bin:$PATH"
export PATH="$PATH:/Users/itamar/Desktop/Dev/flutter/bin"
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.10/bin"
export PATH="$PATH:/Users/itamar/Library/Python/3.10/lib/python/site-packages"
export PATH="$PATH:/Users/itamar/Library/Python/3.10/bin/jupyter"
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/Users/pierrethiollent/.oh-my-zsh"
I don't even mind if I have to nuke everything and start fresh but I don't know what will work short of reinstalled mac osx and even then I don't know if this will actually solve the problem.
Okay. solution found for those who have the same issue and are not migrating from bash to zsh.
Underneath your /.zshrc iterm2 or ohmyzsh will have backed up your previous path list to a file called '.zshrc.pre-oh-my-zsh' which will have your old paths. copied these into the zshrc file and it's working. Phew!
I would like to install the Heroku CLI in my Macbook without using HomeBrew. Is there a way to do this? Perhaps by using a native command via terminal? Or some other way that does not depend on another bit of software? I have searched online but have not found a way to do so.
Note: I have had issues with HomeBrew so I no longer use it, and hope to continue installing without it. I also did a search on Stackoverflow, as well as check the suggested similar questions while composing this one.
For anyone else seeking answers: I just figured out how to install Heroku without Brew or using npm. Use the command below (it is in Heroku's instructions page):
curl https://cli-assets.heroku.com/install.sh | sh
I know this topic is not new but still I havent found a solution.
The TAB autocomplete/ intellisense for Jupyter notebooks doesnt seem to work properly.
I have tried the following possible fixes from several sources:
downgrade jedi=0.17.2
downgrade parso=0.6.2
install pyreadline
nothing really worked reliably. The only thing which seems to fix this is to add the following line on top of each notebook.
%config Completer.use_jedi = False
But thats not a proper solution. So I figured maybe uninstall jedi altogether.
So my question is: is JEDI really needed to run Juypter Notebooks properly?
Many thanks in advance
A
I am learning to program in Python and Rust. On different versions of Ubuntu these programs compiled and ran perfectly. Now that I have a dedicated Fedora 30 KDE system, every time I try and build a program, I get a warning: Failed to load module "appmenu-gtk-module"
I have tried looking this up and have re/installed anything GTK on my system. The programs otherwise function well, but no menus are drawn. I was also trying things in GNOME and hit the same thing.
I am also using QT. Those programs also build and run fine, but again, no menu.
I'm going bonkers with this. Any help is appreciated.
The appmenu-gtk module is not packaged on Fedora. (GNOME doesn't support them anyway.)
The real questions are:
Why is it configured to load? Did you copy or share GTK config files from an Ubuntu system? You should remove this module from your settings.
Even with improper configs I don't believe this should result in menus not appearing. It should just fail to load and work as normal. How is your application using menus?
I finally got so fed up with getting this error that I went full nerd-diagnosis, and ran this command to find out which file contained the errant reference to the appmenu-gtk (the package that would provide this is not installable on my system either).
(Replace "dolphin" with the command that is giving you the error.)
strace -e openat,access dolphin 2>&1 |grep -v ENOENT |awk '/appmenu-gtk/ {exit} !/appmenu-gtk/ {print}'|cut -d '"' -f2 |sort|uniq|xargs grep appmenu-gtk 2>/dev/null
This will then give you a list of files which contain the line appmenu-gtk, and in my case it was ~/.config/gtk-3.0/settings.ini. From there I just commented it out, and that gets rid of the error message (not sure if this will fix your problem of not having any menus, but you might just be able to edit that line to fix it in another way if commenting it out doesn't work).
It's kind of hard to describe this issue, but here goes.
I recently updated all the ports on my Mac using
sudo port upgrade outdated
And now I have a display issue with zsh, as shown in this gif
When I try to do tab completion, I get new text written over the old text. (notice the ls Chrls ... in the gif)
Also, sometimes the last > of the zsh prompt disappears.
Is anyone else facing this issue?
I'm using iTerm, zsh and zprezto.
I removed zprezto by doing
rm ~/.z*
and then reinstalled it following instructions from zprezto and it's back to normal again :)