--
You received this message because you are subscribed to a topic in the Google Groups "sage-cell" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-cell/yCbU9fnkLM8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/5e9fe2a0-a8f1-4a64-9d82-f43f540f162fn%40googlegroups.com.
Hi Andrey,It is not wise to bump on others' topics, but I would recommend you consider installing these two very prominent packages, used by many astronomers/astrophysicists:2. Astropy: https://www.astropy.org/Kind regards,Elimboto
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/63d0c899-47a2-4d64-a10a-867b1b82dd12n%40googlegroups.com.
Thank you, Andrey,I will let you know If I encounter any issues. There are some warnings, but they don't cause any harm so far. I also hope the available dependencies suffice for current use.I do not know why my messages do not appear in the Google group, I have actually been replying to both your email and the google group!One thing I would like to ask, If I have some astronomical data on a public repository such as GitHub, say the data is in .fits, or .h5 (HDF5) formats, can the data in these file formats be read by parsing the repo URL? Or how can this be done? Is there a limitation for some data formats?For example, using pandas we can read .csv data file on GitHub asKind regards,Elimboto
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CAD0_dC5qDkhMuMmZj5E%3DvsHiTvnnqvq2Nw637GH8BeMWtrW_%2Bw%40mail.gmail.com.
Hi Andrey,How do I read the following files on Github in Sage Cell?1. https://github.com/TSSFL/cosmo_datasets/tree/master/hdf5_data.h5
2. https://github.com/TSSFL/cosmo_datasets/blob/main/avgmap_nside512_f1250.00MHz.fitsThey respectively require h5py and healpy packages to read them, so locally I would import the libraries and read them as follows:import h5pyf1 = h5py.File('..../hdf5_data.h5', 'r') #... stands for path to the fileimport healpy as hpf2 = hp.fitsfunc.read_map('..../avgmap_nside512_f1250.00MHz.fits', field=0)I triedf1 = h5py.File('https://github.com/TSSFL/cosmo_datasets/tree/master/hdf5_data.h5', 'r')
f2 = maps = hp.fitsfunc.read_map('https://github.com/TSSFL/cosmo_datasets/blob/main/avgmap_nside512_f1250.00MHz.fits', field=0)on Sage Cell but failed, I get some errors.Kind regards,ElimbotoOn Tue, Dec 15, 2020 at 4:21 AM Elimboto Yohana <e...@tssfl.com> wrote:Pandas works great, but so far I have tested pandas with .csv data files. I will test reading other data files such as .fits, .h5 and so on.
Thank you,
Elimboto
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CAD0_dC65mDrsVEyZUEf%2BNyB7q%2BUTKor0oiC9TAHbnfTGvadftg%40mail.gmail.com.
>
Hi Andrey,I would suggest the installation of the following libraries/software should it be possible (most of these tools are great for animations and visualizations):1. Plotly: pip install plotly (https://pypi.org/project/plotly/) or specify version:pip install plotly==4.14.1
2. SciTools: pip install scitools3 (https://pypi.org/project/scitools3/, see also https://code.google.com/archive/p/scitools/wikis/Installation.wiki)3. Python wrapper for Gnuplot (http://www.gnuplot.info/), PyGnuplot: pip install PyGnuplot (https://pypi.org/project/PyGnuplot/). Gnuplot can be installed as stand-alone. You could also install Gnuplot.py: http://gnuplot-py.sourceforge.net/ ( see demo usage here: https://www.tssfl.com/gnuplot-py-usage-4670)4. Mathematical Animation Engine, Manim: pip3 install manimlib (https://github.com/3b1b/manim, see also the community version https://github.com/ManimCommunity/manim/)5. Bokeh: pip install bokeh (https://pypi.org/project/bokeh/)6. Gif: pip install -U gif (https://pypi.org/project/gif/)In addition you can install OpenCv: https://pypi.org/project/opencv-python/Kind regards,Elimboto
On Tue, Dec 15, 2020 at 7:15 PM Elimboto Yohana <e...@tssfl.com> wrote:
Hi Andrey,How do I read the following files on Github in Sage Cell?1. https://github.com/TSSFL/cosmo_datasets/tree/master/hdf5_data.h5
2. https://github.com/TSSFL/cosmo_datasets/blob/main/avgmap_nside512_f1250.00MHz.fitsThey respectively require h5py and healpy packages to read them, so locally I would import the libraries and read them as follows:import h5pyf1 = h5py.File('..../hdf5_data.h5', 'r') #... stands for path to the fileimport healpy as hpf2 = hp.fitsfunc.read_map('..../avgmap_nside512_f1250.00MHz.fits', field=0)I triedf1 = h5py.File('https://github.com/TSSFL/cosmo_datasets/tree/master/hdf5_data.h5', 'r')
f2 = maps = hp.fitsfunc.read_map('https://github.com/TSSFL/cosmo_datasets/blob/main/avgmap_nside512_f1250.00MHz.fits', field=0)on Sage Cell but failed, I get some errors.Kind regards,Elimboto
On Tue, Dec 15, 2020 at 4:21 AM Elimboto Yohana <e...@tssfl.com> wrote:
Pandas works great, but so far I have tested pandas with .csv data files. I will test reading other data files such as .fits, .h5 and so on.
Thank you,
Elimboto
On Tuesday, December 15, 2020, Andrey Novoseltsev <novo...@gmail.com> wrote:
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CAD0_dC65mDrsVEyZUEf%2BNyB7q%2BUTKor0oiC9TAHbnfTGvadftg%40mail.gmail.com.
>
--
You received this message because you are subscribed to a topic in the Google Groups "sage-cell" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-cell/yCbU9fnkLM8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/5e1b2716-2759-4bd7-b03f-c518d1eedd47n%40googlegroups.com.
Bokeh dependence:However, exporting images with bokeh to formats like png, or others, requires selenium (https://docs.bokeh.org/en/latest/docs/user_guide/export.html):pip install seleniumKind regards,Elimboto
On Wed, Dec 23, 2020 at 12:39 PM Elimboto Yohana <e...@tssfl.com> wrote:
Hi Andrey,Looks like you have installed all the modules I requested, thank you so much. I have a request for one "Plotly" dependence -- chart-studio, which can be installed aspip install chart_studioThe previously used module plotly.plotly is deprecated.Kind regards,Elimboto
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CAD0_dC5EcDLDCTbZK6Vq4HP8Lqqr-GOD7JyQBQNOm%2Bj-bfJwJw%40mail.gmail.com.
Thank you very much Andrey, appreciating.
Kind regards,
Elimboto
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CAD0_dC4Z%2BKvpJJFJKZ%2Bg5OuAO_gTQKwrzvXfvYUOJzM6MrDn8A%40mail.gmail.com.
>
"ImportError: No module named 'tlz' Dask array requirements are not installed. Please either conda or pip install as follows: conda install dask # either conda install python -m pip install "dask[array]" --upgrade # or python -m pip install"
Hope you can check this.
Kind regards,
Elimboto
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/05574b97-c026-4f66-b9f0-c8884b2583e6n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/2b68d81c-d797-42e6-8e37-4b706bfa6814n%40googlegroups.com.
ModuleNotFoundError: No module named '_tkinter'".
tkinter (for Python 3, and Tkinter for Python 2) is a standard GUI library for Python.
I'm not sure if it can be installed using pip, but for Python 3, it can be installed via the command
(change the command appropriately depending on the type of the Linux server):
sudo apt-get install python3-tk
There are a number of suggestions here: https://askubuntu.com/questions/1224230/how-to-install-tkinter-for-python-3-8
Kind regards,
Elimboto
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/57cb7e4c-1f0f-487f-a0ee-fb1a978307e6n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/2b68d81c-d797-42e6-8e37-4b706bfa6814n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/3e4aa51f-8efd-4928-ba24-e425608c0a28n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CACLE5GCuL2VgornZwSut_f9mXfvu48cHq%3DwhFrcwQX%3DFHusyng%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/686ae8ee-d36f-4bf9-9037-8ff670cd35c1n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/50d4fb42-6f3e-4883-9857-8e8355e27ab1n%40googlegroups.com.
Hi Andrey, thank you very much for your time!
I tried Fipy and it works very well. I used an example script (slightly modified) by Fipy authors (only to test the package) and I've seen that it works only if I enable "Python" as interpreter. If I use "Sage" interpreter I obtain error "No attribute 'shape'".The two permalink are the following: the first is ok with Python interpreter, the second can't work due to the "Shape" error when executed with Sage interpreter:
I'm just curious: why it happens?
Another question: can I choose the interpreter (maxima, python, octave, sage, gap, html, ecc...) available on web page of SageMathCell also by using the script sagecell-client.py? Inside this script, where I should set the interpreter for execution of the string in the filed "a.execute_request(...)"?
About Sfepy you are right, I know it is not available a pip version of it. Do you think a possible solution could be to install permanently Miniconda for Linux, so user could use both "!pip install ..." and "!conda install ...." in the temporary opened cell before a calculation? Every installation on local cell (via pip or conda) would be deleted after execution. I propose this only to solve problems related to python libraries that can't be installed with common "pip" but that can be installed only with "conda" when user needs to try some of these libraries, only for quick tests, because installable conda packages are usually pre-compiled libraries for some platforms, like Sfepy as we can see at https://anaconda.org/conda-forge/sfepy.Do you think the command "!conda install ..." could work like "!pip install ..." in current cell by using the "--target" option, in order to install temporary a python lib inside the working cell, only to test it, not to install it permanently?
And last question, with both "!conda install ..." and "!pip install ..." executed inside the current working cell is it possible to ignore dependencies installation by using the pip option "--no-dependencies"? This because I prefer that, for example, a Scipy based python library (that I'd like to test on SageMathCell only one time) uses the SageMathCell built-in Scipy version instead of to install in current cell the entire Scipy lib as dependency (that is time consuming).
--
You received this message because you are subscribed to the Google Groups "sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/8eeef48a-0608-47fa-a0d4-cf25cdb7be4fn%40googlegroups.com.