I am trying to setup Scala on Jupyter Notebook and I have been following this Github page to do the setup https://github.com/vericast/spylon-kernel
But when I used the spylon kernel in Jupyter Notebook. After executing the cell, it just frozen with this message Intitializing Scala interpreter .... I waited for an hour and it still wont show anything other than that message.
I tried to look for solutions on Stackoverflow and Github but still couldnt solve this issue. I am wondering does anyone here know how to solve it? Or have any other alternatives for me to use Scala on Jupyter Notebook.
Check the command prompt of jupyter note-book and see if there is any error.
normally this happens when there is mismatch between spark version and python in anaconda
spylon-kernel hasn't been updated in several years and it does not work properly these days. Instead, its much better to use almond - "A Scala kernel for Jupyter".
Related
I'm pretty new at this so thanks for the patience. I was trying to import some libraries like matplotlib into a Jupiter Notebook file and I would get an error claiming that "there is not module named matplotlib". After having a difficult time installing it through the terminal (every time I used 'pip install matplotlib' the command would terminate due to some error), I tried opening the notebook file through the Anaconda navigator (opening the anaconda navigator, clicking on the Jupyter Notebook, which is slower and less convenient). However, importing actually worked with this method. It was the exact same file. The only variation was the way I opened Jupyter Notebook.
My question is why does this happen? What is going on that I don't know? It seems like an important piece of information to understanding how file systems work but I can't figure it out. Also, how can I fix this?
I recently upgraded to MacOS Catalina to take advantage of various new features/improvements. Soon after installation, I noticed that a question grey mark appeared over the Anaconda icon in my applications. Additionally, my Anaconda files have seemingly been migrated to the "Relocated Items" folder now on my desktop.
I am not sure exactly how to deal with this. I have tried clicking the Anaconda icon with the question mark to launch it, but this fails. I have also attempted locating my Jupyter notebooks in the relocated items file but have not been able to do so successfully.
My question is what do I need to do to fix this problem to restore normal functionality back? Do I need to reinstall Anaconda? Will this new installation have my old Jupyter notebooks?
From a little reading online I have found that Apple says that no files should be deleted; therefore, in theory, there should be no loss of data from the upgrade. I am just not sure how I can restore access to these Jupyter notebooks.
Not sure if anyone else has experienced a similar problem. Any help or general guidance would be greatly appreciated.
Thanks.
Answer: As I just found out, Anaconda rolled out a new update to address this issue. I went to their website here and just downloaded a fresh installation of the latest version of Anaconda. This worked great and completely fixed the issue. I can now access all of my pervious Jupyter notebooks.
I don't understand where to get this (see the link) http://forumbilder.se/H8BSE/skarmavbild-2018-10-01-kl-10-20-25
I thought that we used jupyter Notebook in IDLE/shell (I have downloaded anaconda) but this seems to be something different?
Regards,
UPDATE: ok, I found it, needed to type jupyter notebook in the terminal, and then the broweser came up. Thanks anyway
I want to access my ubuntu terminal using my browser i found a npm package web-terminal but it is kind off not complete. I have seen jupyter notebook do it. so is there a solution for it or a way to get that terminal thingy out of jupyter notebook.
Example: Just like when u access your google cloud server via your browser with some sort of shell.
Note: I didn't get anything to start with just the npm web-terminal so i won't be able to show much effort from my side.
Thank you in advance. :D
So i finally found the answer i was looking for.
There is one such tool called xterm.js and very well applied example of xterm is in jupyter notebook named termiado.
I'm trying to run cb_share_config from an xterm to import some color themes using:
"sudo cb_share_config"
which results in:
"Unable to initialize gtk, is DISPLAY set properly?"
This doesn't make sense to me since I'm running it locally, not through ssh or anything. I didn't think I needed to set the the display. Everything I've searched for is related to connecting to a server, which I'm not doing.
Code::Blocks version 16.01
OpenSUSE Leap version 42.3
Thanks in advance.
Ok so I've solved the problem or rather avoided it altogether by just running the tool directly from a file manager (Thunar). I'm still not entirely satisfied with Windows-like solution but it works. If anyone has any insights as to why I couldn't run it through a terminal I'd like to hear it but I suspect it might be a better question for a linux board.