I see many blogs relate caffe something about notebook example? I only find "example " dir in the caffe source code on github, how to get the "notebook example" dir?
By notebook they mean to say ipython notebook. Details of ipython notebook can be found here.
The file format of ipython notebook is .ipynb. The files with this extension can be found in the examples folder.
If the ipython notebook is successfully installed, you can try running the 01-learning-lenet.ipynb example by typing : ipython notebook ./examples/01-learning-lenet.ipynb from the caffe folder.
Related
I am using Colab to write a notebook using plotly. Within the notebook everything is fine and I can see the pie, but after converting the notebook into a html I don't see it.
this is the code:
import matplotlib.pyplot as plt
import plotly.express as px
Labels=['No', 'Ex-fumatore', 'Fumatore']
values=[1838, 1293, 574]
fig=px.pie(values = values,names = Labels,hole=.5,title = "Tipologie fumatori In Percentuale")
fig.show()
!jupyter nbconvert --to html /content/pie.ipynb
can somebody help me?
Thanks
There could be various reasons why converting an ipynb file to HTML from Colab is not working properly. Here are some possible solutions you could try:
1. Make sure that you have installed the required libraries in Colab that are needed for conversion. To install nbconvert, run the following command in a new cell:
!pip install nbconvert
2. If the nbconvert library is already installed, try uninstalling and reinstalling it to ensure that you have the latest version. You can uninstall it by running the following command:
!pip uninstall nbconvert
And then reinstall it by running:
!pip install nbconvert
3. Check that your notebook is properly saved and there are no unsaved changes. If there are unsaved changes, try saving the notebook and then converting it again.
4. Check the output of the conversion process for any error messages or warnings. These can help you identify the source of the problem.
5. Try converting the notebook to HTML using a different method. For example, you could download the notebook file to your local machine and then use a local installation of Jupyter Notebook to convert it to HTML.
I have a problem with widgets' visualization and export in Jupyter lab. Basically, some widgets (e.g. the text) show their output in the log rather than in the console (see the image below).
Moreover, when I try to export them in HTML they don't appear at all (see the second image below).
I'm using the following versions:
Python: 3.7.7;
Jupyter Lab: 1.2.6;
Jupyter Notebook: 6.0.3;
Jupyter core: 4.6.3;
Ipywidgets: 7.5.1;
Lab-manager: 1.1.
Thanks in advance for your help.
Do this through VoilĂ
pip install voila
or
conda install voila -c conda-forge
And then:
voila path/to/your/notebook.ipynb
For more information and example:
And VoilĂ !
Creating an Interactive Dashboard from Jupyter Notebook with Voila
I am newbie for deep learning and I have installed jupyter notebook as well as pycharm for writing and compiling my codes..As you can see in picture attatchment jupyter notebook and pycharm open.
My question is "Can I change view of running epoch in pycharm to less detailed view as it is been showing in jupyter notebook?"
I am using text analytics library "Spacy". I've installed spacy on Google Colab notebook without any issue. But for using it I need to download "en" model.
Generally, that command should look like this:
python -m spacy download en
I tried few ways but I am not able to get it to install on the notebook. Looking for help.
Cheers
If you have a Python interpreter but not a teriminal, you could try:
import spacy.cli
spacy.cli.download("en_core_web_sm")
More manual alternatives can be found here: https://spacy.io/usage/models#download-pip
Fundamentally what needs to happen is the model file needs to be downloaded, unzipped, and placed into the appropriate site-packages directory. You should be able to find a convenient way to do that, e.g. by pip installing the model package directly. But if you get really stuck, you can get the path by looking at the __file__ variable of any module you have installed, e.g. print(spacy.__file__) . That should tell you where on your file-system the site-packages directory is.
or you can use:
import en_core_web_sm
nlp = en_core_web_sm.load()
!python -m spacy download fr_core_news_sm
Worked for me for the French model
I used to have ipython notebook working correctly in fedora, but then tried to get ipython notebook for julia with Pkg.build("IJulia") and Pkg.add("IJulia").
After doing this and updating my ipython version with pip I could not run ipython notebook anymore, the next exception was raised over and over again:
ERROR:root:Exception in I/O handler for fd 6
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/zmq/eventloop/ioloop.py", line 346, in start
self._handlers[fd](fd, events)
KeyError: 6
^C2014-08-12 22:51:35.024 [NotebookApp] CRITICAL | received signal 2, stopping
Any help would be very much appreciated.
Thanks in advance :)
Getting IJulia to work is lot easier now, Pkg.add("IJulia") will search for jupyter or ipython in PATH, if not found it will use Conda.jl to install the dependencies. Another option which was tried successfully by the OP is to separately install Jupyter(which comes along Anaconda) to system path, and then install IJulia. Then should be able to open the notebooks by,
julia>using IJulia
julia>notebook
Alternatively you can open a notebook by running jupyter notebook in the command line.
PS : Credits to OP and commenters.