I have installed Bokeh with pip, but it's not working in >eppelin.
It shows:
RuntimeError: no display hook installed for notebook type 'zeppelin'
To use Bokeh in Zeppelin notebooks, you will need to install the separate bkzep package:
https://github.com/zjffdu/bkzep
Related
I am currently facing a problem installing a jupyterlab theme that is called rahlir/theme gruvbox.
Since I have installed the jupyterlab extensions and numerous other custom themes I thought that this shouldn't be a
problem.
Although, after many tries, I haven't managed to install it.
The message im getting is this:
Dependency confliction
I have tried using the instructions straight from the github repo but didn't seem to work.
First I tried to install via pip in the command prompt like that:
jupyterlab extension install #ahlir/theme-gruvbox
Unfortunately this didn't work!
After that I tried installng via the extension manager from jupyterlab itself but unfortunately I got the same message!
Note that I have already installed the latest version of jupyterLab and also I have recently update all the packages in my
Anaconda distribution and anaconda itself!
Any help will be greatly appreciated!
Thanks in advance!
I'm just getting started with sphinx, and sucessfully built html pages from .rst files with the command
$ sphinx-build -b html source build
Since my goal is to create pages from Jupyter notebooks, I would like to work with nbsphinx. However, if I try to run mentioned command after adding nbsphinx to the extension of conf.py, I get following error message
Could not import extension nbsphinx (exception: No module named 'sphinx.transforms.post_transforms')
I have installed nbsphinx, as conda list shows
(dummy) C:\Users\rata\someproject conda list
...
nbsphinx 0.4.3 py_0 conda-forge
...
What am I doing wrong?
Apparently, I the issue was with the sphinx version. I was using version 1.5.1, after updating to 2.2.0 everything worked fine!
Trying to get Altair to work with Jupyter Notebook, I installed it using
conda install -c conda-forge altair vega_datasets notebook vega
But when I try to do an example plot
import altair as alt
from vega_datasets import data
# for the notebook only (not for JupyterLab) run this command once per session
alt.renderers.enable('notebook')
iris = data.iris()
alt.Chart(iris).mark_point().encode(
x='petalLength',
y='petalWidth',
color='species'
)
as seen in their quick start guide, I get
ValueError:
To use the 'notebook' renderer, you must install the vega package
and the associated Jupyter extension.
See https://altair-viz.github.io/getting_started/installation.html
for more information.
even though I have installed vega using Conda. I can make vega example plots though. I am unable to enable the Jupyter extension though, as Jupyter says it is incompatible.
Any help is appreciated.
For the current release of altair (Version 2.2), use
conda install -c conda-forge vega=1.3
or
pip install vega==1.3
and then restart the notebook.
The vega python extension was mistakenly updated this week to only support vega-lite 3.0, which is not yet released and thus not yet supported by Altair.
See https://github.com/altair-viz/altair/issues/1114 for the initial bug report.
I installed pytorch using anaconda3 and my created virtual conda environment named 'torchTest'.
I installed all the modules needed but, codes doesn't work in jupyter python.
I installed torchtext using
1.pip install https://github.com/pytorch/text/archive/master.zip
2.and also pip install torchtext too.
all I mentioned successfully downloaded in my MAC OS X, but can't get what's wrong with my Jupyter notebook..
After having the same issue with torchtext from within my jupyterlab, I opened an issue on Github at the jupyterlab project as well as at the torchtext repository.
My current solution is to add the PYTHONPATH from the Anaconda env.
The Anaconda path is usually like that $HOME/anaconda/bin
You can add it from within Jupyter Lab/Notebook like that:
import sys
sys.path.append("/some/path/to/add")
import torchtext
Here is the big question:
Do i need to explicitly install a library, such as Plotly, in order for my locally hosted Notebook to import it?
Yes you need to have the library installed in your local environment to import it into your Jupyter Notebook.
However, you can check whether a package exists from within Jupyter Notebook and also automatically install it if it isn't already available.
you can run pip as well as shell commands from within a cell of the notebook
The syntax is as follows !pip install plotly Here the ! explicitly forces the kernel to execute the command.
If it's already installed you'll get this message Requirement already satisfied: plotly in /opt/conda/lib/python2.7/site-packages